29.05.2014, 13:05
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:
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.
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))
EDIT: Yes, getting the name must be after the sscanf line in /pingplayer too. And change the size of ppString to 128.