Identifying a player in a command
#4

Yes using sscanf is correct but there's already a built-in function for that, there's no need for looping and such.


PHP код:
if(sscanf(params"?<CELLMIN_ON_MATCHES=1>u"target)) return SendClientMessage(playerid, -1"Usage: /wave");
if(
target == cellmin) return SendClientMessage(playerid, -1"[ERROR]: Multiple users found."); 
Reply


Messages In This Thread
Identifying a player in a command - by Ducati - 28.04.2018, 00:57
Re: Identifying a player in a command - by Pottus - 28.04.2018, 01:03
Re: Identifying a player in a command - by Kane - 28.04.2018, 02:21
Re: Identifying a player in a command - by ISmokezU - 28.04.2018, 02:29
Re: Identifying a player in a command - by Zeth - 28.04.2018, 02:47
Re: Identifying a player in a command - by Ducati - 28.04.2018, 02:50
Re: Identifying a player in a command - by Zeth - 28.04.2018, 02:53
Re: Identifying a player in a command - by BigETI - 13.12.2018, 07:22
Re: Identifying a player in a command - by RoboN1X - 13.12.2018, 14:06

Forum Jump:


Users browsing this thread: 6 Guest(s)