SA-MP Forums Archive
Player doesen't spawn? - 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: Player doesen't spawn? (/showthread.php?tid=289215)



Player doesen't spawn? - Shuffler - 10.10.2011

pawn Код:
if(strcmp(inputtext, dj(File, "Password", 40), true) == 0)
                {
                    SendClientMessage(playerid, COLOR_LIGHTGREEN, "You are now logged in, press spawn!");
                   
                    PVar[playerid][pKills]      = djInt     (File, "Kills");
                    PVar[playerid][pDeaths]     = djInt     (File, "Deaths");
                    PVar[playerid][pLevel]      = djInt     (File, "Level");
                    PVar[playerid][pMuted]      = djInt     (File, "Muted");
                    PVar[playerid][pSkin]       = djInt     (File, "Skin");
                    PVar[playerid][pMoney]      = djInt     (File, "Money");
                    print("Passed Money");
                    PVar[playerid][pTut]        = djInt     (File, "Tut");
                    print("Passed TUT");
                    PVar[playerid][pLeader]     = djInt     (File, "Leader");
                    print("Passed LEADER");
                    format(PVar[playerid][pMutedReason], 52, "%s", dj(File, "MutedReason"));
                   
                    PVar[playerid][pLastX]      = djFloat   (File, "LastX");
                    PVar[playerid][pLastY]      = djFloat   (File, "LastY");
                    PVar[playerid][pLastZ]      = djFloat   (File, "LastZ");
                    print("Passed position saving");
                    SpawnPlayer(playerid);
                    print("Passed spawn!")
 }
It goes through everything and i added the spawnplayer myself.. Why wont it go anywhere? Added a print to requestclass and it didnt work. It doesent move on to anywhere from there.


Re: Player doesen't spawn? - Shuffler - 10.10.2011

Never mind I got it working, had some other noobish stuff