4 Errors with my script :/
#1

Hi,

I'm stuck with the following errors, and I don't have a clue what it means..

Any ideas?
Код:
C:\Documents and Settings\****\Desktop\SA-MP 2.X LocalHost Server\gamemodes\twitchrp.pwn(818) : error 002: only a single statement (or expression) can follow each "case"
C:\Documents and Settings\****\Desktop\SA-MP 2.X LocalHost Server\gamemodes\twitchrp.pwn(818 -- 819) : error 029: invalid expression, assumed zero
C:\Documents and Settings\****\Desktop\SA-MP 2.X LocalHost Server\gamemodes\twitchrp.pwn(820) : error 029: invalid expression, assumed zero
C:\Documents and Settings\****\Desktop\SA-MP 2.X LocalHost Server\gamemodes\twitchrp.pwn(823) : error 029: invalid expression, assumed zero
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


4 Errors.
pawn Код:
SetPlayerClass(playerid, classid)
{
    switch(classid) {

    if (classid == 0) //line 118
    { //line 819
    pTeam[playerid] = TEAM_PILOT; //line 20
}
    if (classid == 1)
    pTeam[playerid] = TEAM_TEST; //line 23
}
}
I always get stuck when I get them kinda errors as I don't understand what they means
Reply


Messages In This Thread
4 Errors with my script :/ - by CodeSocket - 30.08.2009, 21:57
Re: 4 Errors with my script :/ - by Backwardsman97 - 30.08.2009, 21:59
Re: 4 Errors with my script :/ - by CodeSocket - 30.08.2009, 22:02
Re: 4 Errors with my script :/ - by Backwardsman97 - 30.08.2009, 23:58

Forum Jump:


Users browsing this thread: 1 Guest(s)