SA-MP Forums Archive
Problem wen some players spawn - 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: Problem wen some players spawn (/showthread.php?tid=89714)



Problem wen some players spawn - Smokes - 03.08.2009

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/



Re: Problem wen some players spawn - Mr_Finnigan - 03.08.2009

Код:
//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.


Re: Problem wen some players spawn - Smokes - 03.08.2009

thanks im gonna try it now


Re: Problem wen some players spawn - Smokes - 03.08.2009

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.




Re: Problem wen some players spawn - Mr_Finnigan - 03.08.2009

Код:
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.


Re: Problem wen some players spawn - Smokes - 03.08.2009

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]