05.11.2017, 13:18
Im using zeex compiler and get this weird error but with original pawn compiler get nothing
An example of piece of code that gave me that error(its almost all over OnDialogResponse)
Its just a gamemode from internet that i try to improve and use it
PHP код:
case DIALOG_GCOLOR:
{
if(response)
{
for (new i = 0; i < MAX_GANGS; i++) if(GangInfo[i][GangColor] == listitem) return SendError(playerid, "Sorry, but the selected color are using some gang. Please select another !");
GangInfo[PlayerInfo[playerid][GangID]][GangColor] = listitem, Announce(playerid, "~w~~h~Gang color have been ~n~~g~~h~updated~w~~h~.", 3000, 4);
eString[0] = EOS;
format(eString, sizeof eString, "GANG: {FFFFFF}Leader '{FFFF00}%s{FFFFFF}' has set a new color to your gang.", PlayerName(playerid));
SendGangMessage(PlayerInfo[playerid][GangID], eString);
foreach(new i : Player) if(PlayerInfo[playerid][GangID] == PlayerInfo[i][GangID]) SetPlayerColor(i, Colors[listitem]);
}
return 1;
}
Its just a gamemode from internet that i try to improve and use it