Posts: 218
Threads: 46
Joined: Feb 2018
Reputation:
0
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
Posts: 287
Threads: 51
Joined: Oct 2015
Reputation:
0
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;
}
Posts: 6,242
Threads: 8
Joined: Jun 2008
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.
Posts: 716
Threads: 92
Joined: May 2018
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.
Posts: 6,242
Threads: 8
Joined: Jun 2008
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.