03.05.2013, 20:51
Quote:
Im using a loop to load every vehicle, by calling the function in the loop
Anyways, ive tried to make the variable larger, didnt work. Tried to make it to 24, 25, 26 and 50; neither one of those worked |
That's how i load my stuff..and it all loads perfectly.
pawn Код:
new TotalThings;
mysql_function_query(g_Handle, "SELECT * FROM table", true, "Loadthings","");
forward Loadthings();
public Loadthings() {
new rows,fields,temp[64];
cache_get_data(rows,fields);
while(TotalThings < rows) {
cache_get_row(TotalThings, 0, temp), eNum[TotalThings][eID] = strval(temp);
cache_get_row(TotalThings, 1, temp), format(eNum[TotalThings][eName],sizeof(temp),temp);
TotalThings++;
}
}
//Are you sure idx 1 is the owner name ?
// 0 - id
// 1 - owner
// 2 - etc.