SetSpawnInfo problem
#1

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;
}
Reply
#2

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;
}
Reply
#3

Add SetSpawnInfo and SpawnPlayer in your login/register code instead.
Reply
#4

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
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)