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
#2

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


Forum Jump:


Users browsing this thread: 2 Guest(s)