28.04.2015, 20:30
Код:
PlayerInfo[playerid][pSpawn] = cache_get_field_content_int(0, "Spawn"); PlayerInfo[playerid][pGender] = cache_get_field_content_int(0, "Gender"); PlayerInfo[playerid][pLevel] = cache_get_field_content_int(0, "Level"); PlayerInfo[playerid][pEntered] = cache_get_field_content_int(0, "Entered"); PlayerInfo[playerid][pMinutes] = cache_get_field_content_int(0, "Minutes"); PlayerInfo[playerid][pTMinutes] = cache_get_field_content_int(0, "TMinutes"); PlayerInfo[playerid][pHours] = cache_get_field_content_int(0, "Hours"); PlayerInfo[playerid][pAge] = cache_get_field_content_int(0, "Age"); PlayerInfo[playerid][pADMute] = cache_get_field_content_int(0, "ADMute"); PlayerInfo[playerid][pModel] = cache_get_field_content_int(0, "Model"); PlayerInfo[playerid][pModel1] = cache_get_field_content_int(0, "Model1"); PlayerInfo[playerid][pModel2] = cache_get_field_content_int(0, "Model2"); PlayerInfo[playerid][pModel3] = cache_get_field_content_int(0, "Model3"); PlayerInfo[playerid][pMapper] = cache_get_field_content_int(0, "Mapper"); PlayerInfo[playerid][pBanned] = cache_get_field_content_int(0, "Banned"); PlayerInfo[playerid][pNumber] = cache_get_field_content_int(0, "Number"); PlayerInfo[playerid][pKill] = cache_get_field_content_int(0, "Kill"); PlayerInfo[playerid][pDeath] = cache_get_field_content_int(0, "Death"); PlayerInfo[playerid][pInt] = cache_get_field_content_int(0, "Interior"); PlayerInfo[playerid][pVW] = cache_get_field_content_int(0, "Virtual World");
I use an ID to define the saving, should it be the same for loading?
Like:
Код:
WHERE `ID`=%d"