Problem wen some players spawn
#1

classes at player selection, who are in interiors...wen they spawn the screen goes grey, help plz, its only players with interiors at player selection and i want them to have interiors at the player selection
/imageshack/i/samp933.png/
/imageshack/i/samp934.png/
Reply
#2

Код:
//on top
new PlayerClass[MAX_PLAYERS];

OnPlayerRequestClass(playerid, classid)
{
  PlayerClass[playerid] = classid;
  return 1;
}

OnPlayerSpawn(playerid)
{
  if(PlayerClass[playerid] == 0) SetPlayerInterior(playerid, 0);
  if(PlayerClass[playerid] == 1) SetPlayerInterior(playerid, 2);
  //etc
  return 1;
}
Then you just do 1 for each team 0 being outside.
Reply
#3

thanks im gonna try it now
Reply
#4

sorry for double post i get 26 errors
Quote:

C:\Program Files\Rockstar Games\GTA San Andreas\SA Root\Samp\gamemodes\RPG.pwn(991) : error 055: start of function body without function header
C:\Program Files\Rockstar Games\GTA San Andreas\SA Root\Samp\gamemodes\RPG.pwn(992) : error 010: invalid function or declaration
C:\Program Files\Rockstar Games\GTA San Andreas\SA Root\Samp\gamemodes\RPG.pwn(994) : error 010: invalid function or declaration
C:\Program Files\Rockstar Games\GTA San Andreas\SA Root\Samp\gamemodes\RPG.pwn(100 : error 010: invalid function or declaration
C:\Program Files\Rockstar Games\GTA San Andreas\SA Root\Samp\gamemodes\RPG.pwn(1022) : error 010: invalid function or declaration
C:\Program Files\Rockstar Games\GTA San Andreas\SA Root\Samp\gamemodes\RPG.pwn(1027) : error 021: symbol already defined: "SetPlayerInterior"
C:\Program Files\Rockstar Games\GTA San Andreas\SA Root\Samp\gamemodes\RPG.pwn(1037) : error 010: invalid function or declaration
C:\Program Files\Rockstar Games\GTA San Andreas\SA Root\Samp\gamemodes\RPG.pwn(1042) : error 021: symbol already defined: "SetPlayerInterior"
C:\Program Files\Rockstar Games\GTA San Andreas\SA Root\Samp\gamemodes\RPG.pwn(1052) : error 010: invalid function or declaration
C:\Program Files\Rockstar Games\GTA San Andreas\SA Root\Samp\gamemodes\RPG.pwn(1063) : error 010: invalid function or declaration
C:\Program Files\Rockstar Games\GTA San Andreas\SA Root\Samp\gamemodes\RPG.pwn(1077) : error 010: invalid function or declaration
C:\Program Files\Rockstar Games\GTA San Andreas\SA Root\Samp\gamemodes\RPG.pwn(1091) : error 010: invalid function or declaration
C:\Program Files\Rockstar Games\GTA San Andreas\SA Root\Samp\gamemodes\RPG.pwn(1105) : error 010: invalid function or declaration
C:\Program Files\Rockstar Games\GTA San Andreas\SA Root\Samp\gamemodes\RPG.pwn(1120) : error 010: invalid function or declaration
C:\Program Files\Rockstar Games\GTA San Andreas\SA Root\Samp\gamemodes\RPG.pwn(1135) : error 054: unmatched closing brace ("}")
C:\Program Files\Rockstar Games\GTA San Andreas\SA Root\Samp\gamemodes\RPG.pwn(1136) : error 010: invalid function or declaration
C:\Program Files\Rockstar Games\GTA San Andreas\SA Root\Samp\gamemodes\RPG.pwn(1151) : error 010: invalid function or declaration
C:\Program Files\Rockstar Games\GTA San Andreas\SA Root\Samp\gamemodes\RPG.pwn(1166) : error 010: invalid function or declaration
C:\Program Files\Rockstar Games\GTA San Andreas\SA Root\Samp\gamemodes\RPG.pwn(1180) : error 010: invalid function or declaration
C:\Program Files\Rockstar Games\GTA San Andreas\SA Root\Samp\gamemodes\RPG.pwn(1195) : error 010: invalid function or declaration
C:\Program Files\Rockstar Games\GTA San Andreas\SA Root\Samp\gamemodes\RPG.pwn(1211) : error 010: invalid function or declaration
C:\Program Files\Rockstar Games\GTA San Andreas\SA Root\Samp\gamemodes\RPG.pwn(1227) : error 010: invalid function or declaration
C:\Program Files\Rockstar Games\GTA San Andreas\SA Root\Samp\gamemodes\RPG.pwn(1243) : error 010: invalid function or declaration
C:\Program Files\Rockstar Games\GTA San Andreas\SA Root\Samp\gamemodes\RPG.pwn(125 : error 010: invalid function or declaration
C:\Program Files\Rockstar Games\GTA San Andreas\SA Root\Samp\gamemodes\RPG.pwn(1272) : error 010: invalid function or declaration
C:\Program Files\Rockstar Games\GTA San Andreas\SA Root\Samp\gamemodes\RPG.pwn(1287) : error 010: invalid function or declaration

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


26 Errors.

ive put it down to 5 errors
Quote:

C:\Program Files\Rockstar Games\GTA San Andreas\SA Root\Samp\gamemodes\RPG.pwn(3103) : error 002: only a single statement (or expression) can follow each "case"
C:\Program Files\Rockstar Games\GTA San Andreas\SA Root\Samp\gamemodes\RPG.pwn(3107) : error 054: unmatched closing brace ("}")
C:\Program Files\Rockstar Games\GTA San Andreas\SA Root\Samp\gamemodes\RPG.pwn(310 : error 010: invalid function or declaration
C:\Program Files\Rockstar Games\GTA San Andreas\SA Root\Samp\gamemodes\RPG.pwn(311 : error 055: start of function body without function header
C:\Program Files\Rockstar Games\GTA San Andreas\SA Root\Samp\gamemodes\RPG.pwn(3160) : error 010: invalid function or declaration
C:\Program Files\Rockstar Games\GTA San Andreas\SA Root\Samp\gamemodes\RPG.pwn(3206) : warning 203: symbol is never used: "vNames"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


5 Errors.

Reply
#5

Код:
C:\Program Files\Rockstar Games\GTA San Andreas\SA Root\Samp\gamemodes\RPG.pwn(3107) : error 054: unmatched closing brace ("}")
THIS is the main problem,usually adding the correct closing brace fixes everything.
Reply
#6

i still get 3 errors
Quote:

C:\Program Files\Rockstar Games\GTA San Andreas\SA Root\Samp\gamemodes\RPG.pwn(310 : error 010: invalid function or declaration
C:\Program Files\Rockstar Games\GTA San Andreas\SA Root\Samp\gamemodes\RPG.pwn(311 : error 055: start of function body without function header
C:\Program Files\Rockstar Games\GTA San Andreas\SA Root\Samp\gamemodes\RPG.pwn(3160) : error 010: invalid function or declaration
C:\Program Files\Rockstar Games\GTA San Andreas\SA Root\Samp\gamemodes\RPG.pwn(3206) : warning 203: symbol is never used: "vNames"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


3 Errors.
ok i got rid of the line 3108 error

C:\Program Files\Rockstar Games\GTA San Andreas\SA Root\Samp\gamemodes\RPG.pwn(3116) : error 055: start of function body without function header
C:\Program Files\Rockstar Games\GTA San Andreas\SA Root\Samp\gamemodes\RPG.pwn(315 : error 010: invalid function or declaration
C:\Program Files\Rockstar Games\GTA San Andreas\SA Root\Samp\gamemodes\RPG.pwn(3204) : warning 203: symbol is never used: "vNames"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
[/quote]
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)