Weird bug: script works for 1 person only [help plz]
The following code is working only for one person, I think it only works for the first who joins the server, or the first to get the piece of code activated.
take a look... it is for The Specialists mod... Code:
new preso[33]Code:
if(get_distance(origin,jailone) <= 100.0 || get_distance(origin,jailtwo) <= 100.0 || get_distance(origin,jailthree) <= 100.0 || get_distance(origin,jailfour) <= 100.0)And I think the truly problem is here: Code:
public jail_timer(id) |
Re: Weird bug: script works for 1 person only [help plz]
I'm sorry, the code is quite translated to portuguese...
|
Re: Weird bug: script works for 1 person only [help plz]
Moving to scripting help
|
Re: Weird bug: script works for 1 person only [help plz]
Code:
|
Re: Weird bug: script works for 1 person only [help plz]
But, it does works for one person... Why it is not working for the others?
|
Re: Weird bug: script works for 1 person only [help plz]
Perhaps the second person has it : Off and it just handle the rest of the plugin. Did you try without it ?
|
Re: Weird bug: script works for 1 person only [help plz]
Code:
I'm not sure why, but PAWN likes to screw things up in these for loops with lots of commands inside them for each player. The way to fix this would be to code it like this: Code:
|
Re: Weird bug: script works for 1 person only [help plz]
no point in making 2 functions...
Code:
public jail_timer(id) |
| All times are GMT -4. The time now is 22:27. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.