02.03.2014, 18:52
(
Последний раз редактировалось 1fret; 03.03.2014 в 10:33.
)
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;
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;