Problema intalnita (descriere):Problema care o am eu nu este una grava dar , din cate am incercat eu sa schimb nu mi-a iesit, ea este la comanda /factions vreau sa arate asa ex:[15/50]Los Santos police departament am incercat sa inlocuiesc %s\n%s [%d/%d] adica sa fie asa [%d/%d] %s\n%s si nu a mers dupa am incercat sa schimb szMessage, groupVariables[xf][gGroupName], members, groupVariables[xf][gSlots]); si le-am facut asa members, groupVariables[xf][gSlots] ,szMessage, groupVariables[xf][gGroupName] , tot nu a mers Ero(area / rile) / warning-(ul / urile): Liniile de cod / sursa / script-ul(obligatoriu):
CMD:factions(playerid, params[]) { new members; format(szMessage, sizeof(szMessage), "Factions:"); for(new xf = 0; xf < MAX_GROUPS; xf++) { if(strlen(groupVariables[xf][gGroupName]) >= 1 && strcmp(groupVariables[xf][gGroupName], "None", true)) { new stringy2[256]; 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); format(szMessage, sizeof(szMessage),"%s\n%s [%d/%d]", szMessage, groupVariables[xf][gGroupName], members, groupVariables[xf][gSlots]); } } ShowPlayerDialog(playerid, 4500, DIALOG_STYLE_LIST,"Server: Factions", szMessage, "Select", "Cancel"); SelFaction[playerid] = 0; return 1; } Imagini / Video (optional): Ati incercat sa rezolvati singur?:
Question
Edduard
Problema intalnita (descriere):Problema care o am eu nu este una grava dar , din cate am incercat eu sa schimb nu mi-a iesit, ea este la comanda /factions vreau sa arate asa ex:[15/50]Los Santos police departament am incercat sa inlocuiesc %s\n%s [%d/%d] adica sa fie asa [%d/%d] %s\n%s si nu a mers dupa am incercat sa schimb szMessage, groupVariables[xf][gGroupName], members, groupVariables[xf][gSlots]); si le-am facut asa members, groupVariables[xf][gSlots] ,szMessage, groupVariables[xf][gGroupName] , tot nu a mers
Ero(area / rile) / warning-(ul / urile):
Liniile de cod / sursa / script-ul(obligatoriu):
CMD:factions(playerid, params[])
{
new members;
format(szMessage, sizeof(szMessage), "Factions:");
for(new xf = 0; xf < MAX_GROUPS; xf++)
{
if(strlen(groupVariables[xf][gGroupName]) >= 1 && strcmp(groupVariables[xf][gGroupName], "None", true))
{
new stringy2[256];
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);
format(szMessage, sizeof(szMessage),"%s\n%s [%d/%d]", szMessage, groupVariables[xf][gGroupName], members, groupVariables[xf][gSlots]);
}
}
ShowPlayerDialog(playerid, 4500, DIALOG_STYLE_LIST,"Server: Factions", szMessage, "Select", "Cancel");
SelFaction[playerid] = 0;
return 1;
}
Imagini / Video (optional):
Ati incercat sa rezolvati singur?:
SKIPE : EDUARD.SENNOW
Link to comment
Share on other sites
3 answers to this question
Recommended Posts