SA-MP Forums Archive
Help help - 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: Help help (/showthread.php?tid=414633)



Help help - kaloqn54 - 10.02.2013

Код:
CMD:checkdrugs(playerid, params[])
{
	new string[100];
	new string2[100];
    format(string, sizeof(string), "You have %s Heroin", Heroin[playerid]);
    format(string2, sizeof(string2), "You Have %s Weed", Weed[playerid]);
    SendClientMessage(playerid, -1, string);
    SendClientMessage(playerid, -1, string2);
    return 1;
}
on %s when i /checkdrugs it hasn't got any number like this You have Weed PLese help this is the last post


Re: Help help - Height - 10.02.2013

where have you declared the enumerator Weed in the GM ??


Re: Help help - Gamer_007 - 10.02.2013

why u used "%s" if u have to show numbers?? O.o use "%d" instead of "%s"


Re: Help help - kaloqn54 - 10.02.2013

thxx