16.01.2016, 13:55
Quote:
And how exactly do I do that?
I've tried with "for(new i" etc.. But it didn't work.. :c |
PHP код:
public OnCarsLoad()
{
for(new i,j=cache_num_rows();i<j;i++)
{
new tmp[256], string5[256];
cInfo[i][cModel] = cache_get_field_content_int(i, "carModel");
}
}
Oh, and I'm assuming you don't use this OnCarsLoad again, if you are you should assign a global var, and increment it everytime you create a car, and load your array according to that global variable.