- 0
Problema comanda
-
Similar Content
-
Recently Browsing 0 members
- No registered users viewing this page.
We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.
Question
marius11
Problema intalnita (descriere):Am o problema si nu o pot rezolva la comanda .factions vreau sa arate ceva gen [0/10]lspd[appdeschise] si nu pot ori cum as pune %s%s [%d/%d] {00FF00}[applications online]{FFFFFF}
Ero(area / rile) / warning-(ul / urile):
Liniile de cod / sursa / script-ul(obligatoriu):
CMD:factions(playerid, params[])
{
new members;
new stringz2[1024];
for(new xf = 0; xf < MAX_GROUPS; xf++)
{
if(strlen(groupVariables[xf][gGroupName]) >= 1 && strcmp(groupVariables[xf][gGroupName], "None", true))
{
new stringy2[256], app;
mysql_format(handle, stringy2, 256, "SELECT * FROM `playeraccounts` WHERE `playerGroup` = '%d'", xf);
new Cache: resultx = mysql_query (handle, stringy2);
members = cache_get_row_count();
cache_delete(resultx);
mysql_format(handle, stringy2, 256, "SELECT * FROM `groups` WHERE `groupID` = '%d'", xf);
new Cache: resultd = mysql_query(handle, stringy2);
if(cache_get_row_count() != 0)
{
cache_get_field_content(0, "groupApplication", result); app = strval(result);
}
cache_delete(resultd);
if(app == 1)
{
format(stringz2, sizeof(stringz2),"%s%s [%d/%d] {00FF00}[applications online]{FFFFFF}\n", stringz2, groupVariables[xf][gGroupName], members, groupVariables[xf][gMaxMembers]);
}
else if(app == 0)
{
format(stringz2, sizeof(stringz2),"%s%s [%d/%d] {FF0000}[applications offline]{FFFFFF}\n", stringz2, groupVariables[xf][gGroupName], members, groupVariables[xf][gMaxMembers]);
}
}
ShowPlayerDialog(playerid, DIALOG_FACTIONS, DIALOG_STYLE_LIST,"Server: Factions", stringz2, "Select", "Cancel");
}
return 1;
}
Imagini / Video (optional):
Ati incercat sa rezolvati singur?:Da am incercat cred ca toate variantele %s%s [%d/%d] {00FF00}[applications online]{FFFFFF} si nu stiu sigur daca este de aici
Daca cineva a mai avut problema asta si imi spune si mie unde trebuie sa modific
4 answers to this question
Recommended Posts