14.08.2013, 22:39
Hello,
Im having a problem loading my clubs. It just simply crashes my server..
The Crashdetect backtrace traces NOTHING. This is my code:
What could be wrong? D:
Im having a problem loading my clubs. It just simply crashes my server..
The Crashdetect backtrace traces NOTHING. This is my code:
pawn Код:
forward LoadClubs();
public LoadClubs()
{
new rows, fields, i=0;
cache_get_data( rows, fields, Handle);
if(!rows)
{
print("Clubs table is empty, no results found.");
return 1;
}
while(rows > i < MAX_CLUBS)
{
AClubData[i][ID] = cache_get_row_int(i, 0);
cache_get_row(i, 2, AClubData[i][Owner], Handle, 24);
AClubData[i][ClubX] = cache_get_row_float(i, 21);
AClubData[i][ClubY] = cache_get_row_float(i, 22);
AClubData[i][ClubZ] = cache_get_row_float(i, 23);
AClubData[i][PickUpID] = CreateDynamicPickup(1273, 1, AClubData[i][ClubX], AClubData[i][ClubY], AClubData[i][ClubZ], -1);
}
return 1;
}