A little assistance with SSCANF and STRCMP. - 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: A little assistance with SSCANF and STRCMP. (
/showthread.php?tid=325377)
A little assistance with SSCANF and STRCMP. -
Dokins - 13.03.2012
Basically, it wont send the messages under the sscanf.
pawn Код:
if(!(strcmp(usage, "store", true)))
{
if(sscanf(usage, "s[32]",item))
{
SendClientMessage(playerid, COLOUR_GREY, "Usage: /trunk store [item]");
SendClientMessage(playerid, COLOUR_GREY, "Available Items: Weapon, Weed, Cocaine, Money, Armour");
return 1;
}
Re: A little assistance with SSCANF and STRCMP. -
ReneG - 13.03.2012
What are you doing with your strcmp?
This line should work.
pawn Код:
if(!strcmp(usage, "store", true))