Kick using sscanf
#3

command(kick,playerid,params[])
{
new Temp[24],Reason[128];

if(Player[playerid][Admin] == ADMIN_OWNER)
{

}
else
{
ShowNotificationMessage(playerid,"~r~Warning Message~n~ ~n~ ~n~ ~n~ ","You need to be Server Owner to use this command.",5);
}

if(!sscanf(params,"us",Temp,Reason))
{
if(!IsNumeric
GetPlayer
}
else
{
ShowNotificationMessage(playerid,"~r~Warning Message~n~ ~n~ ~n~ ~n~ ","Usage: /kick <~y~ID or Name~w~> <~y~Reason~w~>.",5);
}
return 1;
}

-----------------------------------------------------------------------

This will be my kick command. I want to ask, what must I put where it is bold text. Integer or String?
Reply


Messages In This Thread
Kick using sscanf - by MummyKillerSLO - 29.04.2010, 16:29
Re: Kick using sscanf - by Roytjuh - 29.04.2010, 16:41
Re: Kick using sscanf - by MummyKillerSLO - 29.04.2010, 16:45
Re: Kick using sscanf - by biltong - 29.04.2010, 16:59

Forum Jump:


Users browsing this thread: 1 Guest(s)