SetSpawnInfo problem - 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: SetSpawnInfo problem (
/showthread.php?tid=322859)
SetSpawnInfo problem -
Matz - 03.03.2012
Hi. If I use SetSpawnInfo code before death, the game crashing when I die. The code is here, added for auto spawn after login;
Код:
if(PlayerInfo[playerid][pSkin] > 0)
{
SetSpawnInfo(playerid, 0, PlayerInfo[playerid][pSkin], 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
SpawnPlayer(playerid); // auto spawn if skin id greater than 0
SetCameraBehindPlayer(playerid);
return 1;
}
AW: SetSpawnInfo problem -
Drebin - 03.03.2012
pawn Код:
if(PlayerInfo[playerid][pSkin] > 0)
{
SetSpawnInfo(playerid, 0, PlayerInfo[playerid][pSkin], 0.0, 0.0, 0.0, 0.0, 0, 0, 0, 0, 0, 0);
SpawnPlayer(playerid); // auto spawn if skin id greater than 0
SetCameraBehindPlayer(playerid);
return 1;
}
Re: SetSpawnInfo problem -
Walsh - 03.03.2012
Add SetSpawnInfo and SpawnPlayer in your login/register code instead.
Re: AW: SetSpawnInfo problem -
Matz - 04.03.2012
Quote:
Originally Posted by Drebin
pawn Код:
if(PlayerInfo[playerid][pSkin] > 0) { SetSpawnInfo(playerid, 0, PlayerInfo[playerid][pSkin], 0.0, 0.0, 0.0, 0.0, 0, 0, 0, 0, 0, 0); SpawnPlayer(playerid); // auto spawn if skin id greater than 0 SetCameraBehindPlayer(playerid); return 1; }
|
lolwut