04.03.2012, 08:47
Hey, I am currently scripting a RP script from scratch. And when i spawn, i get Server Closed connection. There is no errors in the script or the logs. The server dosent close it self, i just get dced from the server.
This is my OnPlayerSpawn code:
OnPlayerRequestClass code:
dont know whats wrong.
If you need some other codes, write below.
Thankful for help, cant figure out whats wrong.
This is my OnPlayerSpawn code:
pawn Код:
public OnPlayerSpawn(playerid)
{
SetPlayerColor(playerid,COLOR_WHITE);
new cash = PlayerInfo[playerid][pCash];
new score = PlayerInfo[playerid][pScore];
GivePlayerMoney(playerid,cash);
SetPlayerScore(playerid,score);
SetPlayerSkin(playerid, PlayerInfo[playerid][pSkin]);
TogglePlayerSpectating(playerid, 0);
SetPlayerPos(playerid, 1007.0414,-1387.0471,13.3421);
return 1;
}
pawn Код:
public OnPlayerRequestClass(playerid, classid)
{
TogglePlayerSpectating(playerid, 1);
return 1;
}
If you need some other codes, write below.
Thankful for help, cant figure out whats wrong.