making team help
#1

I am a new scripter and im trying to make a teamdeathmatch gamemode but i have problem making the teams and i following an tutorial i did everything the tutorial say but i keep getting errors. can someone tell me what i did wrong.



SetPlayerTeamFromClass(playerid, classid)
{
switch(classid)
{
case 0:
{
gTeam[playerid] = TEAM_YSPAWN;
}
case 1:
{
gTeam[playerid] = TEAM_BALLAS;
}
}
return 1;
}


and i keep getting these errors

C:\Documents and Settings\NADINE.HOME-C13C86E48E\Desktop\New Folder\sampserver 2\gamemodes\lskz.pwn(399) : error 029: invalid expression, assumed zero
C:\Documents and Settings\NADINE.HOME-C13C86E48E\Desktop\New Folder\sampserver 2\gamemodes\lskz.pwn(403) : error 029: invalid expression, assumed zero
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


line 399: gTeam[playerid] = TEAM_YSPAWN;

line 403: gTeam[playerid] = TEAM_BALLAS;
Reply


Messages In This Thread
need help on making teams - by 1fret - 02.03.2014, 18:52
Re: making team help - by Ahmad45123 - 02.03.2014, 20:58
Re: making team help - by 1fret - 02.03.2014, 21:50
Re: making team help - by 1fret - 03.03.2014, 10:31
Re: making team help - by 1fret - 04.03.2014, 12:03
Re: making team help - by Konstantinos - 04.03.2014, 12:08
Re: making team help - by 1fret - 05.03.2014, 14:42
Re: making team help - by TomatoRage - 05.03.2014, 14:54
Re: making team help - by 1fret - 05.03.2014, 22:37

Forum Jump:


Users browsing this thread: 2 Guest(s)