Spawning via MySQL
#1

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);
Reply


Messages In This Thread
Spawning via MySQL - by AphexCCFC - 23.01.2013, 01:01
Re: Spawning via MySQL - by Infinity90 - 23.01.2013, 01:07

Forum Jump:


Users browsing this thread: 1 Guest(s)