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



Command Help (/mycigars) - Mariooo - 07.09.2012

Hi i wanna make a /mycigar command,

I have the following:

Код:
COMMAND:mycigars(playerid, params[])
{
	new string[128];
    format( string, sizeof( string ), "Your cigars: %s ", cigarette[playerid]);
    SendClientMessage( playerid, Red, string );
    return 1;
}
My defines of smoking:
Код:
new cigarette[MAX_PLAYERS];
But it doesn't work..


Re : Command Help (/mycigars) - lelemaster - 07.09.2012

Код:
format( string, sizeof( string ), "Your cigars: %d ", cigarette[playerid]);



Re: Command Help (/mycigars) - Mariooo - 07.09.2012

Thanks man, i'm trying to learn new things in scripting. And now i know this! Thanks!