Stop this while loop?
PHP Code:
After my plugin deletes the old spawns, it creates the new spawns in my new locations, but they are still being deleted by the loop. |
Re: Stop this while loop?
Are you sure your spawns are being created successfully? Try this just to verify that they are getting deleted by the loops.
PHP Code:
|
Re: Stop this while loop?
After I strip the spawns, I call this
PHP Code:
But I can't select the terrorists team when I join..so I'm assuming the spawn was not created or it was being deleted by my while loop. |
Re: Stop this while loop?
PHP Code:
|
Re: Stop this while loop?
exolent already fixed create_test_spawn() (although it could be Float:{953, 412, 46} and Float:{0, 180, 0}, for {953.0, 412.0, 46.0} and {0.0, 180.0, 0.0} you dont need to add a float: in front).
also, look at this to fix your usage of EngFunc_FindEntityByString: PHP Code:
|
Re: Stop this while loop?
I did what you both recommended.
The normal spawns are being removed, but my new spawn is not being created (can't join the terrorists team -.-) |
Re: Stop this while loop?
Try spawning the entity with DLLFunc_Spawn.
|
Re: Stop this while loop?
PHP Code:
|
Re: Stop this while loop?
maybe its cuz of the cs engine, i guess cs i registering all spawns while fm_setkeyvalue is run. this would mean any spawns created after this wont be accepted by the engine. (just a guess though)
|
Re: Stop this while loop?
Try creating the entity in plugin_precache().
|
| All times are GMT -4. The time now is 02:17. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.