Error: Undefined Symbol wtf?
#1

I made a new variable to set a enabled/disabled stat but Pawno gives me a undefined symbol error. Why?
Reply
#2

Please show the code ..
. This happens because you have an un defined array / variable / statement ..
Reply
#3

Ok

i did that on the top of the script
Код:
new State;
Код:
public OnPlayerExitVehicle(playerid, vehicleid)
{
	if (State[playerid] > 0)
{
    PutPlayerInVehicle(playerid, vehicleid, 0);
    SendClientMessage(playerid, lightred, "You can't exit during Mission");
    return 1;
}
Edit: i also did a command using zcmd containing
Код:
State[playerid]=1;
Reply
#4

Change new State; to State[MAX_PLAYERS];
Reply
#5

I've also tried that. Same problem.
Reply
#6

Do you have these lines in your script?

pawn Код:
#if defined
pawn Код:
#endif
Reply
#7

OMG i forgot to add #endif -.- thank you so much
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)