A number of spawn-related errors
#1

Alrighty.. Rather than posting 20 threads I thought I'd post all my problems in one package.

I'm running BlueG's MySQL R6.

Firstly, this morning I tried to spawn all players at the hospital, upon player death. Here's the new code:

PHP код:
public OnPlayerDeath(playeridkilleridreason)
{
    
SetSpawnInfo(playerid0Player[playerid][Skin], 1608.01641824.474410.82030000000);
    
SpawnPlayer(playerid);
    
UpdatePlayer(playerid);
    
SavePlayer(playerid);
    return 
1;

Not only does it NOT spawn at the hospital, it spawns players underground at the other end of the map with a skin id of 0 (cj). Then, even though it should in theory save the new skin after spawning, the database doesn't update to skin id 0.

Next is something less serious, but annoying all the same. When players die, they are prompted with the choose class screen, only there is no player or anything, just the "<< >> Select" options. Is it possible to completely skip this screen?

Thanks in advance to all, if you need to see any of the functions, just tell me!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)