Little bit of help :D
#1

I can't figure out why this wont work.

pawn Код:
case 0:
(703)       {
(704)           if(gTeam(playerid) == 2);
(705)           {
(706)               ShowPlayerDialog(playerid, 999, DIALOG_STYLE_LIST, "Police Arms","Shotgun\nSMG\nM4\nArmour");
(708)           }
        }
and i get these errors:
Код:
(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
Reply
#2

if statements don't have a semicolon in front of it. Also your Dialog does not have enough parameters used.
Reply
#3

I fixed the dialog but i get this:
Код:
(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
Reply
#4

pawn Код:
case 0:
{
    if(gTeam(playerid) == 2) {
        ShowPlayerDialog(playerid, 999, DIALOG_STYLE_LIST, "Police Arms","Shotgun\nSMG\nM4\nArmour", "Submit", "Cancel");
    }
}
Reply
#5

pawn Код:
if(gTeam(playerid) == 2) //you don't need a ; after if statements
Reply
#6

I got it. I replaced (playerid) with [playerid] and it works now. Thanks for the attempted help
Reply
#7

Quote:
Originally Posted by ScottCFR
I got it. I replaced (playerid) with [playerid] and it works now. Thanks for the attempted help
and that I haven't noticed that nor Anwix xD
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)