Data from MySQL Database not doing it's job
#3

I've done this:

pawn Код:
new temp[128];
    cache_get_field_content(0, "skin", temp);
    pInfo[playerid][Skin] = strval(temp);
    cache_get_field_content(0, "x", temp);
    pInfo[playerid][x] = floatstr(temp);
    cache_get_field_content(0, "y", temp);
    pInfo[playerid][y] = floatstr(temp);
    cache_get_field_content(0, "z", temp);
    pInfo[playerid][z] = floatstr(temp);
    cache_get_field_content(0, "Balance", temp);
    pInfo[playerid][Money] = strval(temp);
    SetSpawnInfo(playerid, 0, pInfo[playerid][Skin], pInfo[playerid][x], pInfo[playerid][y], pInfo[playerid][z], 1, 0, 0, 0, 0, 0, 0);
    pLogged[playerid] = 1;
    SpawnPlayer(playerid);
In my RestoreData callback, it seems to be working now, thank you so much, I appreciate it a lot.
Reply


Messages In This Thread
Data from MySQL Database not doing it's job - by Shoulen - 03.04.2013, 16:33
Re: Data from MySQL Database not doing it's job - by AndreT - 03.04.2013, 18:13
Re: Data from MySQL Database not doing it's job - by Shoulen - 03.04.2013, 18:35
Re: Data from MySQL Database not doing it's job - by AndreT - 03.04.2013, 19:28
Re: Data from MySQL Database not doing it's job - by Shoulen - 04.04.2013, 15:45
Re: Data from MySQL Database not doing it's job - by Scenario - 04.04.2013, 15:53

Forum Jump:


Users browsing this thread: 1 Guest(s)