03.04.2013, 18:35
I've done this:
In my RestoreData callback, it seems to be working now, thank you so much, I appreciate it a lot.
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);