case 0:
(703) {
(704) if(gTeam(playerid) == 2);
(705) {
(706) ShowPlayerDialog(playerid, 999, DIALOG_STYLE_LIST, "Police Arms","Shotgun\nSMG\nM4\nArmour");
(708) }
}
(704) : error 012: invalid function call, not a valid address (704) : warning 215: expression has no effect (704) : error 001: expected token: ";", but found ")" (704) : error 029: invalid expression, assumed zero (704) : fatal error 107: too many error messages on one line
(704) : error 012: invalid function call, not a valid address (704) : warning 215: expression has no effect (704) : error 001: expected token: ";", but found ")" (704) : error 029: invalid expression, assumed zero (704) : fatal error 107: too many error messages on one line
case 0:
{
if(gTeam(playerid) == 2) {
ShowPlayerDialog(playerid, 999, DIALOG_STYLE_LIST, "Police Arms","Shotgun\nSMG\nM4\nArmour", "Submit", "Cancel");
}
}
if(gTeam(playerid) == 2) //you don't need a ; after if statements
Originally Posted by ScottCFR
I got it. I replaced (playerid) with [playerid] and it works now. Thanks for the attempted help
|