04.12.2009, 15:31
Hi,
Where is the problem?
Errors:
Script:
Where is the problem?
Errors:
Quote:
C:\Program Files\gamemodes\myserver.pwn(681) : error 022: must be lvalue (non-constant) C:\Program Files\gamemodes\myserver.pwn(681) : warning 215: expression has no effect C:\Program Files\gamemodes\myserver.pwn(681) : error 001: expected token: ";", but found ")" C:\Program Files\gamemodes\myserver.pwn(681) : error 029: invalid expression, assumed zero C:\Program Files\gamemodes\myserver.pwn(681) : fatal error 107: too many error messages on one line Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 4 Errors. |
pawn Код:
public OnPlayerRequestClass(playerid, classid)
{
SetupPlayerForClassSelection(playerid);
gClass[playerid] = classid;
if(classid == 133 || classid == 134 || classid == 135) {
GameTextForPlayer(playerid,"~g~Spawn 1",5000,5);
} else if(classid == 140 || classid == 141 || classid = 142) {
GameTextForPlayer(playerid,"~r~Spawn 2",5000,5);
} else if(classid == 200 || classid == 201) {
GameTextForPlayer(playerid,"~p~Spawn 3",5000,5);
}
return 1;
}