Unable to load pickups from mysql
#1

Can somebody tell me what seems to be wrong with this query?

PHP код:
public LoadPickups(playerid)
{
    new 
query[1000], savingstring[1000];
    new 
Float:x,Float:y,Float:z;
    
format(querysizeof(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;

Doesn't wanna load my floats.


EDIT: Nevermind, Fixed.
Reply


Messages In This Thread
Unable to load pickups from mysql - by thistooshallpass93 - 12.06.2013, 03:08
Re: Unable to load pickups from mysql - by Pottus - 12.06.2013, 03:12
Re: Unable to load pickups from mysql - by thistooshallpass93 - 12.06.2013, 03:25

Forum Jump:


Users browsing this thread: 1 Guest(s)