[Tool/Web/Other] Tires Command
#6

+
don't use sscanf to read only one integer parameter use strval.
also,
Код:
    new string[128];
    format(string, sizeof(string), "* Your car tires have been changed!");

    SendClientMessage(playerid,COLOR_ORANGE,string);
could change into this:
Код:
    SendClientMessage(playerid,COLOR_ORANGE,"* Your car tires have been changed!");
also
Код:
 if(!IsPlayerConnected(playerid)) return SendClientMessage(playerid,COLOR_GREY,"* You are not an administrator or not logged in as RCON!");;
I don't think that IsPlayerConnected will return if you have RCON-administrative rights or not.
Reply


Messages In This Thread
Tires Command - by Mister. M - 01.05.2011, 09:20
Re: Tires Command - by Infamous - 01.05.2011, 09:40
Re: Tires Command - by Mister. M - 01.05.2011, 11:53
Re: Tires Command - by pischel - 01.05.2011, 14:00
Re: Tires Command - by Zh3r0 - 01.05.2011, 14:32
Re: Tires Command - by xxmitsu - 01.05.2011, 14:41
Re: Tires Command - by Zh3r0 - 01.05.2011, 14:52
Re: Tires Command - by xxmitsu - 01.05.2011, 14:54

Forum Jump:


Users browsing this thread: 4 Guest(s)