SA-MP Forums Archive
ID/PartOfName - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: ID/PartOfName (/showthread.php?tid=309308)



ID/PartOfName - SnG.Scot_MisCuDI - 07.01.2012

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]");



Respuesta: ID/PartOfName - [Nikk] - 07.01.2012

you have to update your sscanf


Re: ID/PartOfName - SnG.Scot_MisCuDI - 07.01.2012

It is the newest version


Respuesta: ID/PartOfName - [Nikk] - 07.01.2012

you are using Linux ?


Re: ID/PartOfName - [O.z]Caroline - 07.01.2012

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



Re: ID/PartOfName - coole210 - 07.01.2012

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


Re: ID/PartOfName - SnG.Scot_MisCuDI - 07.01.2012

Yes it is linux


Re: ID/PartOfName - Outcast - 07.01.2012

I have the same problem, anyone?


Re: ID/PartOfName - SupremeCommander - 07.01.2012

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


Re: ID/PartOfName - Konstantinos - 07.01.2012

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.