Quote:
Originally Posted by B3x7K
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 i; i < rows; i++) if(i < 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.