SA-MP Forums Archive
Bugging player ids - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Bugging player ids (/showthread.php?tid=420014)



Bugging player ids - beasty - 03.03.2013

Hey, i have problem with my server.
Bugging my server players id's. I mean, when i'm trying to set (for example) playerid 1 admin level, the admin gets playerid 3 or something. I don't think, that administration system is guilty, because before couple weeks everything was fine. Maybe some include or plugin can be guilty?
Please help, sorry for bad english.


Re: Bugging player ids - Jochemd - 03.03.2013

It might be a good idea to show us the code where you set the level (post the command here).


Respuesta: Bugging player ids - Strier - 03.03.2013

So i guess what you mean is..

When playerid (ID 0) uses the setlevel command the playerid he uses returns to himself?

For example Strier attempted to set Beasty level to 4
Strier set's strier Level 4.

Well, if that's the case define a global/local variable and change it for playerid..

the variable would be like this
pawn Код:
new Receiver[MAX_PLAYERS];
and once it's made define it like this
pawn Код:
Receiver[playerid]
instead (Example):
pawn Код:
receiver(playerid)
as playerid is always 0..

Hope you got it :/


Re: Bugging player ids - beasty - 03.03.2013

Noo, guys, i mean not only admin setlevel command bugging, every command who requires other player id's bugging. Like /goto, /pm or something.


Re: Bugging player ids - DaRk_RaiN - 03.03.2013

Seen this happen before https://sampforum.blast.hk/showthread.php?tid=394856, update your sscanf and recompile.


Re: Bugging player ids - beasty - 03.03.2013

Thanks, DaRk_RaiN. FIXED