09.07.2010, 04:26
(
Последний раз редактировалось GOSIMP; 09.07.2010 в 04:44.
)
I made a new TDM script and i get this error while compiling
Somebody Please fix this Thank you
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. |
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; } |