12.06.2013, 03:08
Can somebody tell me what seems to be wrong with this query?
Doesn't wanna load my floats.
EDIT: Nevermind, Fixed.
PHP код:
public LoadPickups(playerid)
{
new query[1000], savingstring[1000];
new Float:x,Float:y,Float:z;
format(query, sizeof(query), "SELECT * FROM Pickups");
mysql_query(query);
mysql_store_result();
while(mysql_fetch_row_format(query,"|"))
{
mysql_fetch_field_row(savingstring, "PickupID"); PickupInfo[PickupID] = strval(savingstring);
mysql_fetch_field_row(savingstring, "ID"); PickupInfo[IDz] = strval(savingstring);
mysql_fetch_field_row(savingstring, "Type"); PickupInfo[Type] = strval(savingstring);
mysql_fetch_field_row(savingstring, "X"); PickupInfo[X] = floatstr(savingstring);
mysql_fetch_field_row(savingstring, "Y"); PickupInfo[Y] = floatstr(savingstring);
mysql_fetch_field_row(savingstring, "Z"); PickupInfo[Z] = floatstr(savingstring);
mysql_free_result();
}
return 1;
}
EDIT: Nevermind, Fixed.