SA-MP Forums Archive
Spawning via MySQL - 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: Spawning via MySQL (/showthread.php?tid=409804)



Spawning via MySQL - AphexCCFC - 23.01.2013

What's wrong with this?

pawn Код:
mysql_retrieve_row();
    mysql_get_field("SkinID", result);
    PlayerVariable[playerid][pSkinID] = strval(result);
    mysql_get_field("PlayerPosX", result);
    PlayerVariable[playerid][pPos][0] = floatstr(result);
    mysql_get_field("PlayerPosY", result);
    PlayerVariable[playerid][pPos][1] = floatstr(result);
    mysql_get_field("PlayerPosZ", result);
    PlayerVariable[playerid][pPos][2] = floatstr(result);
    SetSpawnInfo(playerid, 0, PlayerVariable[playerid][pSkinID], PlayerVariable[playerid][pPos][0], PlayerVariable[playerid][pPos][1], PlayerVariable[playerid][pPos][2], 0, 0, 0, 0, 0, 0, 0);
    SpawnPlayer(playerid);



Re: Spawning via MySQL - Infinity90 - 23.01.2013

What is wrong with it, what happens? Why post it here?
Explain.