Quote:
Originally Posted by SuperViper
Instead of having fstring and using strcat, just format string and before everything put a %s, which would be string.
|
like that?
Код:
format(string,sizeof string,"%sSort: %s \n",string,WeedInfo[r][wSort]);
ShowPlayerDialog(playerid,DIALOG_MANAGEWEED+4,DIALOG_STYLE_LIST,"Weed Sorts",string,"Ok","Cancel");
it still wont work.
Quote:
Originally Posted by Bogdan1992
pawn Код:
CMD:weedsorts(playerid, params[]){ if(IsPlayerConnected(playerid)){ if(PlayerInfo[playerid][pAdmin] == 0){ SendClientMessage(playerid,COLOR_GRAD2,"You are not authorized to use this command!"); return 1; } for(new r = 0; r <= MAX_WEEDS; r++){ new string[256]; format(string, sizeof(string),"Sort: %s\n",WeedInfo[r][wSort]); ShowPlayerDialog(playerid,DIALOG_MANAGEWEED+4,DIALOG_STYLE_LIST,"Weed Sorts",string,"Ok","Cancel"); } } return 1; }
|
that aint working neither