help with warn again
#1

http://pastebin.com/T0rq1K7P


please help me how i can show the reason its all done when i do /warn 0 its work with out reaon i need to work with reaon and show me reason for exapel


Admin %s Warn %s For Reason: %s
Reply
#2

pawn Код:
if(sscanf(params, "u", warnID, Reason))
With the "u" you load only a player here, but not the string. Change it to "us" so it will scan for the string too.
Reply
#3

Change
pawn Код:
new warnID, Reason[128];
And the SScanf line:
pawn Код:
if(sscanf(params, "us", warnID, Reason))return SendClientMessage(playerid, COLOR_RED, "/warn [playerid] [reason]");
Reply
#4

thnaks for help me dude good luck!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)