SA-MP Forums Archive
Crash - 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)
+--- Thread: Crash (/showthread.php?tid=578717)



Crash - ShoortyFl - 21.06.2015

Something about this is crashing my server:

pawn Код:
if(PI[playerid][Spawn] == SPAWN_AERO)
    {
        SetSpawnInfo(playerid, 0, PI[playerid][Skin], 1642.0083, -2333.7332, 13.5469, 359.6582, 0, 0, 0, 0, 0, 0);
    }
    else if(PI[playerid][Spawn] == SPAWN_KOLODVOR)
    {
        SetSpawnInfo(playerid, 0, PI[playerid][Skin], 1724.6261, -1911.9575, 13.5642, 93.2842, 0, 0, 0, 0, 0, 0);
    }
   
    SpawnPlayer(playerid);



Re: Crash - ShoortyFl - 21.06.2015

Anyone ?


Re: Crash - Darkwood17 - 21.06.2015

Remove this, it not needed:
Код:
SpawnPlayer(playerid);
SetSpawnInfo already spawns the player.


Re: Crash - ShoortyFl - 21.06.2015

No it does not, it gives me these << >>


Re: Crash - ikey07 - 21.06.2015

most likely this cause it to crash PI[playerid][Skin] as you set some invalid skin id and spawn player