Command Help (/mycigars)
#1

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..
Reply
#2

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

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


Forum Jump:


Users browsing this thread: 1 Guest(s)