[Help] - SetVIP || About Target's Name and Target's ID
#9

What R0 said about getting the name of the targetid before sscanf is correct. You basically get the name of the player with ID 0.

Except that, the sscanf specifiers are wrong. You have 3 parameters and 2 specifiers, sscanf should've given a warning for that in the console. Change to:
pawn Код:
if(sscanf(params, "ui", targetid, vipLevel))
and also change the size of vipString to 144 since that is the max client lenght, 500 is just waste.

EDIT: Yes, getting the name must be after the sscanf line in /pingplayer too. And change the size of ppString to 128.
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 5 Guest(s)