Given Wanteds
#1

Is there a way to save the given wanteds at /su ?

new pid,wid,reason[64];
if(sscanf(params,"uis[256]",pid,wid,reason))return SendClientMessage(playerid, COLOR_GRAD2, "Use: (/su)spect [playerid/Name] [Wantedsl] [Crime]");


I want to take the value of "wid" to another public
Reply
#2

new gPlayerWantedLvl[MAX_PLAYERS];

CMD: suspect(playerid, params[])
{

new pid,wid,reason[64];
if(sscanf(params,"uis[256]",pid,wid,reason))
return SendClientMessage(playerid, COLOR_GRAD2, "Use: (/su)spect [playerid/Name] [Wantedsl] [Crime]");

gPlayerWantedLvl[pid] = wid;

}
Reply
#3

Pretty sure he didn't just want a command, he wanted to know how to show it and track it, not just set their wanted level.
Reply
#4

I don't understand what are you asking @OP.

Do you want check the wanted level of a player by typing /su playerid? Or what?

When you guys ask something, be more specific. We're not wizards.
Reply
#5

Along with s[256] being probably not so good an idea. There's likely no way you'd be able to get that size string to sscanf, from the input.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)