07.03.2013, 07:56
Hey people!
I've got a strange problem.
I've got a function to spawn my objects. Those are stored in a MySQL Database.
It actually works very well.
But somehow when the count of objects is more than 59 I get problems with my player spawn.
Somehow my SetSpawnInfo and SpawnPlayer function won't work anymore.
If I spawn less den 60 objects my script works just as I want.
Maybe you could help me.
Thx
I've got a strange problem.
I've got a function to spawn my objects. Those are stored in a MySQL Database.
It actually works very well.
But somehow when the count of objects is more than 59 I get problems with my player spawn.
Somehow my SetSpawnInfo and SpawnPlayer function won't work anymore.
If I spawn less den 60 objects my script works just as I want.
Код:
public AddObjects() { new string[256] = "SELECT * FROM objects"; mysql_query(string); mysql_store_result(); while(mysql_fetch_row(string)) { new dest[50][30]; split(string, dest); printf("Adding Object ID: %s", dest[0]); CreateObject(strval(dest[1]), floatstr(dest[3]), floatstr(dest[4]), floatstr(dest[5]), floatstr(dest[6]), floatstr(dest[7]), floatstr(dest[8])); } mysql_free_result(); }
Thx