11.04.2013, 14:36
Hi, I am making a gamemode and I have 2 teams defined. Now I got this problem:
Code:
I actually tried everything, but it doesnt seem to work.
pawn Код:
C:\Users\Gast\Desktop\SA-MP Server\gamemodes\DonataDefend.pwn(110 -- 111) : error 029: invalid expression, assumed zero
C:\Users\Gast\Desktop\SA-MP Server\gamemodes\DonataDefend.pwn(116 -- 117) : error 029: invalid expression, assumed zero
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
2 Errors.
pawn Код:
public OnPlayerRequestClass(playerid, classid)
{
switch(classid)
{
case 0
{
SetPlayerTeam(playerid, Attackers);
GameTextForPlayer(playerid, "~r~Attackers", 1000, 3);
}
case 1
{
SetPlayerTeam(playerid, Defenders);
GameTextForPlayer(playerid, "~b~Defenders", 1000, 3);
}
}
return 1;
}