20.04.2014, 13:10
If the command didn't work with the zcmd layout why should it work with strcmp ?
Also I am not sure if you just misspelled it but it is Received
Firts of all remove the ColorsSTR array, it is useless
Also I am not sure if you just misspelled it but it is Received
Firts of all remove the ColorsSTR array, it is useless
pawn Код:
CMD:colourlist(playerid, params[]) {
new
dstring[2000] // max 20 chars per line * 100 (sizeof Colors)
;
for(new i; i < sizeof Colors; i++) {
format(dstring, sizeof dstring, "%s\n{%x}Colour #%d", dstring, Colors[i] >> 8, i);
}
return ShowPlayerDialogEx(playerid, DIALOG_MESSAGE, DIALOG_STYLE_LIST, "Vehicle Colours", dstring[1], "Okay", "");
}