19.07.2013, 10:15
Hello, i got a problem loading my Car IDS from the database. Well its working fine but at this moment it has a dissability to be abled to sell anything. The problem is there is id 1,2,3,5 in the database but the server loads it like this 1,2,3,4 while i want to skip 4 and go to 5. How would i go around to do that? Underneath here is my code:
Here's a picture of the database
Uploaded with ImageShack.us
pawn Код:
forward OnCarIDsLoad();
public OnCarIDsLoad()
{
new rows, fields;
cache_get_data(rows, fields, Handle);
new i = 0;
while( rows > i < 10000)
{
VehicleLoad[i] = true;
printf("Car %d created", i);
i++;
}
print("Loading finished");
return 1;
}
Uploaded with ImageShack.us