#1

I made a new TDM script and i get this error while compiling

Quote:

C:\Users\Adrian\Desktop\SAMP SERVER\gamemodes\TDM 0.1.pwn(59) : error 017: undefined symbol "gPlayerClass"
C:\Users\Adrian\Desktop\SAMP SERVER\gamemodes\TDM 0.1.pwn(59) : warning 215: expression has no effect
C:\Users\Adrian\Desktop\SAMP SERVER\gamemodes\TDM 0.1.pwn(59) : error 001: expected token: ";", but found "]"
C:\Users\Adrian\Desktop\SAMP SERVER\gamemodes\TDM 0.1.pwn(59) : error 029: invalid expression, assumed zero
C:\Users\Adrian\Desktop\SAMP SERVER\gamemodes\TDM 0.1.pwn(59) : fatal error 107: too many error messages on one line

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


4 Errors.

Somebody Please fix this Thank you

Quote:

public OnGameModeExit()
{
return 1;
}

public OnPlayerRequestClass(playerid, classid)
{
gPlayerClass[playerid] = classid; // PROBLEM IS HERE <<<<<<<<< LINE 59

switch (classid) {

case 0: //Case 0 the character we added before the first one.

{
gTeam[playerid] = TEAM_POLICE;
GameTextForPlayer(playerid, "~b~Police", 1000, 6); r (Green).

}
case 1: //Case 1 the character we added before the second.

{
gTeam[playerid] = TEAM_ROBBER;
GameTextForPlayer(playerid, "~r~Robber", 1000, 6);
}
}
//Spawn positions the players will see to spawn.
SetPlayerPos(playerid, 489.8416,-72.4437,999.2266);
SetPlayerFacingAngle( playerid, 2.3616 );
SetPlayerCameraPos(playerid, 491.6849,-72.3607,999.2117);
SetPlayerCameraLookAt(playerid, 489.8416,-72.4437,999.2266);
SetPlayerInterior(playerid ,11);
return 1;
}

Reply


Messages In This Thread
Help - by GOSIMP - 09.07.2010, 04:26
Re: Help - by Kar - 09.07.2010, 04:28
Re: Help - by GOSIMP - 09.07.2010, 04:31
Re: Help - by GOSIMP - 09.07.2010, 04:34
Re: Help - by GOSIMP - 09.07.2010, 04:48
Re: Help - by cessil - 09.07.2010, 04:49
Re: Help - by Dennis - 09.07.2010, 04:54
Re: Help - by DarkClone - 09.07.2010, 04:57
Re: Help - by GOSIMP - 09.07.2010, 05:01
Re: Help - by aNdReSk - 09.07.2010, 05:21

Forum Jump:


Users browsing this thread: 3 Guest(s)