12.07.2011, 18:35
Did it with sscanf:
Still writes the same error, here is mysql_Int:
mysql_int is just calling mysql_Get and converting it into integers.
PHP код:
sscanf(mysql_Int(SQL_USERS,PlayerInfo[playerid][pUID],"spawn"),"p<,>fff", PlayerInfo[playerid][pSpawn][0], PlayerInfo[playerid][pSpawn][1],PlayerInfo[playerid][pSpawn][2]);
PHP код:
stock mysql_Get(table[],id,key[])
{
new string[128];
format(string, sizeof(string), "SELECT `%s` FROM `%s` WHERE `id` = '%d'",key,table,id);
mysql_query(string);
mysql_store_result();
mysql_fetch_row_format(string);
return string;
}