loop command
i want to repeat a command as long is recieve a specified value how can i do that?
i tried: for(new i=1;i<300;i++) { if (ent_get_int(i,ENT_INT_modelindex) = 180) { client_print(id,print_center,"Did it!" } } but it doesn't work plz help me |
try changing
Code:
Code:
|
thats not the prob i just made a mistake...
i can't build that in a public name(id) because it says in console "command not found" i need to put it in a task, but i see many plugins that use that kind of command in a normal (id) thingy how can i do that too? |
Quote:
Try a while statement |
You're looping between random entities.
You should first check if the entity is even valid before trying to extrapolate data from it. |
| All times are GMT -4. The time now is 17:11. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.