Problem with split
#3

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

mysql_int is just calling mysql_Get and converting it into integers.
Reply


Messages In This Thread
Problem with split - by [IL]HeHu - 12.07.2011, 17:00
Re: Problem with split - by [IL]HeHu - 12.07.2011, 17:26
Re: Problem with split - by [IL]HeHu - 12.07.2011, 18:35

Forum Jump:


Users browsing this thread: 1 Guest(s)