ID/PartOfName
#1

My script used to work if u put ID or Part of name but now if u put name it just does the command on id 0.
pawn Код:
if(sscanf(params, "ui", targetid)) return SendClientMessage(playerid, red, "USAGE: /nuke [playerid/name]");
Reply
#2

you have to update your sscanf
Reply
#3

It is the newest version
Reply
#4

you are using Linux ?
Reply
#5

pawn Код:
if(sscanf(params, "u", targetid)) return SendClientMessage(playerid, red, "USAGE: /nuke [playerid/name]");
Код:
U - Part of name/ID
I - Interator..
Reply
#6

Quote:
Originally Posted by Above
I - Interator..
It means Integer.
Reply
#7

Yes it is linux
Reply
#8

I have the same problem, anyone?
Reply
#9

It looks like your SScanf is outdated... Download latest one fromHere.. It'll fix your issues with the command only performing on ID 0
Reply
#10

Download the latest version of Sscanf. Also, it should be like this
pawn Код:
if(sscanf(params, "u", targetid)) return SendClientMessage(playerid, red, "USAGE: /nuke [playerid/name]");
You don't need integer for this.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)