01.06.2009, 09:28
I tried the same with my players row
And it works. Why does the same thing doesnt work with my other table in mysql? Could someone please help me, i really need to get it working.
Код:
format(string, sizeof(string), "SELECT Password, Admin, Gun1, Ammo1 FROM players WHERE id = '%d' LIMIT 1", PlayerInfo[playerid][pID]); samp_mysql_query(string); samp_mysql_store_result(); samp_mysql_fetch_row(Data); if(sscanf(Data,"p|sddd", PlayerInfo[playerid][pPassword], PlayerInfo[playerid][pAdmin], PlayerInfo[playerid][pGun1], PlayerInfo[playerid][pAmmo1] )) print("Fail");