Error Tag
#1

Deleted
Reply
#2

pawn Код:
new Speedo[MAX_PLAYERS];
pawn Код:
if(Speedo[playerid] == true && newstate == PLAYER_STATE_DRIVER)
Reply
#3

The above code will still show the error.

just declare the variable as a bool.

new bool:Speedo[MAX_PLAYERS char];

Not sure if this is a good use for that there or not but that should compile just fine.
Reply
#4

r3ct is right

so the code will like this

pawn Код:
new bool:Speedo[MAX_PLAYERS char];
pawn Код:
if(Speedo[playerid] == true && newstate == PLAYER_STATE_DRIVER)
Reply
#5

Correction (again):
pawn Код:
new bool:Speedo[MAX_PLAYERS char];

//OnPlayerStateChange...
if(Speedo{playerid} && newstate == PLAYER_STATE_DRIVER)
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)