08.01.2015, 13:32
I'm using DIALOG_STYLE_LIST, so when I did this:
These errors I get:
How could I make that code in a single statement to follow "case"? Is that even possible?
pawn Код:
if(response) // If they clicked 'Select' or double-clicked a weap
{
switch(listitem)
{
foreach(new i: Player)
{
case 0: if(PlayerInfo[i][pGang] = 2000), format(string, sizeof(string), "%s (%d)", PlayerName(i), i), ShowPlayerDialog(playerid, DIALOG_GROVES, DIALOG_STYLE_LIST, "Gang: Grove Street Families", string1, "Close", "");
pawn Код:
GM.pwn(1410) : error 002: only a single statement (or expression) can follow each "case"
GM.pwn(1410) : error 029: invalid expression, assumed zero