Disable all Commands Except...
#16

Quote:
Originally Posted by Xtreme_playa
Посмотреть сообщение
pawn Код:
public OnPlayerDeath(playerid, killerid, reason)
{
    gCommandsDisabled[playerid]=false;  // you made a typo, it's gCommands not gCOmmands
    SendDeathMessage(killerid, playerid, reason);
    GetPlayerSkin(playerid);
    new Batz[45];
    format(Batz, sizeof(Batz), "You were killed by %s", GetPName(killerid));
    GameTextForPlayer(playerid,Batz, 4000,4);
    format(Batz, sizeof(Batz), "You killed %s", GetPName(playerid));
    GameTextForPlayer(killerid,Batz, 4000,4);
    return 1;
}
Ooops a mistake didn't see that. +rep And the last error after compiling.

(9450) : warning 203: symbol is never used: "zcmd_OnPlayerCommandText"
LOL but i dont have line 9450.

i think this is the problem

Код:
OnPlayerCommandText(playerid,cmdtext[])
{
     if(strcmp(cmdtext,"/t")==0 && cmdtext[2]=='\0')
     {
          if(gCommandsDisabled[playerid]==true)
          {
                //Text dialog
                return 1:
          }
            //...
     }
Reply


Messages In This Thread
Disable all Commands Except... - by kbalor - 13.07.2012, 20:53
Re: Disable all Commands Except... - by Roko_foko - 13.07.2012, 20:58
Re: Disable all Commands Except... - by kbalor - 13.07.2012, 21:00
Re: Disable all Commands Except... - by Roko_foko - 13.07.2012, 21:00
Re: Disable all Commands Except... - by kbalor - 13.07.2012, 21:10
Re: Disable all Commands Except... - by Larceny - 13.07.2012, 21:21
Re: Disable all Commands Except... - by Roko_foko - 13.07.2012, 21:23
Re: Disable all Commands Except... - by kbalor - 14.07.2012, 09:35
Re: Disable all Commands Except... - by kbalor - 14.07.2012, 10:01
Re: Disable all Commands Except... - by Roko_foko - 14.07.2012, 10:14
Re: Disable all Commands Except... - by kbalor - 14.07.2012, 12:44
Re: Disable all Commands Except... - by Mark™ - 14.07.2012, 12:47
Re: Disable all Commands Except... - by Blunt - 14.07.2012, 12:48
Re: Disable all Commands Except... - by kbalor - 14.07.2012, 12:56
Re: Disable all Commands Except... - by Mark™ - 14.07.2012, 13:00
Re: Disable all Commands Except... - by kbalor - 14.07.2012, 13:06
Re: Disable all Commands Except... - by Mark™ - 14.07.2012, 13:09
Re: Disable all Commands Except... - by kbalor - 14.07.2012, 13:15
Re: Disable all Commands Except... - by Mark™ - 14.07.2012, 13:17
Re: Disable all Commands Except... - by Andi_Evandy - 14.07.2012, 13:27
Re: Disable all Commands Except... - by kbalor - 14.07.2012, 13:28
Re: Disable all Commands Except... - by Mark™ - 14.07.2012, 13:33
Re: Disable all Commands Except... - by kbalor - 14.07.2012, 13:39
Re: Disable all Commands Except... - by kbalor - 14.07.2012, 13:42
Re: Disable all Commands Except... - by kbalor - 14.07.2012, 14:21
Re: Disable all Commands Except... - by Roko_foko - 14.07.2012, 22:00

Forum Jump:


Users browsing this thread: 2 Guest(s)