MySQL help again
#8

Quote:
Originally Posted by B3x7K
View Post
Still confused... but let me give you an example how to load some..
PHP Code:

public OnGameModeInit();
{
     
//bla bla bla
     
mysql_tquery(ConnectionHandle"SELECT * FROM `Machines`""Load_Machines");
forward Load_Machines();
public 
Load_Machines()
{
     new 
rows;
     
cache_get_row_count(rows);
     for(new 
irowsi++) if(MAX_MACHINES//loop rows, then check again is i less than MAX_MACHINES
     
{
           
cache_get_value_name_int(i"mID"MachineData[i][MachineID]);
           
cache_get_value_name(i"mName"MachineData[i][MachineName]);
           
//etc
     
}
     return 
1;

Still doesn't work even when doing it like that.
Reply


Messages In This Thread
MySQL help again - by TheLeech - 17.01.2019, 16:40
Re: MySQL help again - by Heress - 17.01.2019, 16:42
Re: MySQL help again - by TheLeech - 17.01.2019, 16:51
Re: MySQL help again - by TheLeech - 18.01.2019, 08:44
Re: MySQL help again - by B3x7K - 18.01.2019, 09:40
Re: MySQL help again - by TheLeech - 18.01.2019, 10:09
Re: MySQL help again - by B3x7K - 18.01.2019, 11:56
Re: MySQL help again - by TheLeech - 18.01.2019, 12:31
Re: MySQL help again - by B3x7K - 19.01.2019, 00:00

Forum Jump:


Users browsing this thread: 2 Guest(s)