- 0
Problema comanda
-
Similar Content
-
- 4 answers
- 585 views
-
Comanda /spec
By VAurel,
- 4 answers
- 214 views
-
- 3 replies
- 254 views
-
- 3 replies
- 217 views
-
Problema turf
By Soryn.,
- 2 answers
- 218 views
-
-
Recently Browsing 0 members
- No registered users viewing this page.
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
Link to comment
Share on other sites
4 answers to this question
Recommended Posts