SA-MP Forums Archive
Errors.. - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Errors.. (/showthread.php?tid=226424)



Errors.. - DJJack - 15.02.2011

Hi there, So I am trying to make a dutch roleplay.. but I am kinda new to this world of scripting but I've read some tutorials and the SA-MP wiki.. but I still get some errors.

Код:
C:\Users\DJJack\Desktop\SA-MP Server\gamemodes\dr.pwn(99) : warning 215: expression has no effect
C:\Users\DJJack\Desktop\SA-MP Server\gamemodes\dr.pwn(99) : error 001: expected token: ";", but found ")"
C:\Users\DJJack\Desktop\SA-MP Server\gamemodes\dr.pwn(99) : error 029: invalid expression, assumed zero
C:\Users\DJJack\Desktop\SA-MP Server\gamemodes\dr.pwn(99) : warning 215: expression has no effect
C:\Users\DJJack\Desktop\SA-MP Server\gamemodes\dr.pwn(99) : error 001: expected token: ";", but found ")"
C:\Users\DJJack\Desktop\SA-MP Server\gamemodes\dr.pwn(99) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


4 Errors.
I've tried changing things and it still gives me the same errors.. so heres the part of the script..

pawn Код:
97  public OnPlayerRequestClass(playerid, classid)
98  {
99    SetPlayerTeamFromClass(playerid, classid);
100    {
101    switch(classid)
102     {
103      case 0,1,2,3:gTeam[playerid] = TEAM_CIVILIAN;
104      case 4,5,6,7,8,9:gTeam[playerid] = TEAM_COPS;
105     }
106    }
107    SetPlayerPos(playerid, 1958.3783, 1343.1572, 15.3746);
108    SetPlayerCameraPos(playerid, 1958.3783, 1343.1572, 15.3746);
109    SetPlayerCameraLookAt(playerid, 1958.3783, 1343.1572, 15.3746);
110    return 1;
111 }
Any help some of you may have?

Thanks in advance
-Jack


Re: Errors.. - PowerPC603 - 15.02.2011

pawn Код:
SetPlayerTeamFromClass(playerid, classid);
You forgot the ;


Re: Errors.. - DJJack - 15.02.2011

Missed that one , added it, but it still gives me the same errors...