Problem with variables
#1

Код HTML:
new Variable;
Код HTML:
public OnPlayerSpawn(playerid)
{
Variable[playerid] = 1;
	return 1;
}
Код HTML:
error 028: invalid subscript (not an array or too many subscripts): "Variable"
warning 215: expression has no effect
error 001: expected token: ";", but found "]"
error 029: invalid expression, assumed zero
fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


4 Errors.
Reply
#2

Where did you put "new Variable;"?

If it's intended to be a global variable, try "new Variable[MAX_PLAYERS]; and recompile.
Reply
#3

THANKS
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)