[HELP]Filterscript/Commands seem to be working only for ID 0
#1

Good evening everybody,

I've made a filterscript with several commands in it. I'm not quite sure if it's the filterscript or if it's the command itself, but it only works for players with ID 0.

Now I made some adjustments to it so the GameTextForPlayer should work for every player. It did for ID 1, but not for ID 0. (Not sure about the other ID's). Now of course I don't know what the hell I did wrong.

If I change it to (GameTextForPlayer(playerid, string, 3000.4); Then the ID 0 bug appears (Only ID 0 Sees it).
Thanks in advance.
Reply
#2

pawn Код:
if (playerid == ispassenger)
What in the world is that line?
ispassenger's value is 0 if the player is not a passenger, therefore it checks if(playerid == 0).

pawn Код:
if(ispassenger == 1)
That'd be a proper usage.
Reply
#3

Well, I shall test it, but that's probably not the issue.
When I used the old if statement it also worked in the debug. (Showed the ID's properly).

At the time I hadn't this part implemented, the problem already occured. GameTextForPlayer only views for ID 0.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)