Bugging player ids
#1

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.
Reply
#2

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

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 :/
Reply
#4

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

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

Thanks, DaRk_RaiN. FIXED
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)