Blocking a command
#9

Quote:
Originally Posted by [L3th4l]
Посмотреть сообщение
Straight to the point, thanks!
Stop using the squiggly brackets, and use the proper ones like we said. You can find time to post a goddamn animated gif, but you can't read your own code

WTF?

pawn Код:
public OnPlayerCommandPerformed(playerid, cmdtext[], success)
{
    if(success)
    {
        if([b]pInEvent{playerid} == 1[/b]) return 0;
    }
    return 1;
}
See, That bold piece, That's where your issue is, and it's because you use the { } brackets and not the ( ).
Reply


Messages In This Thread
Blocking a command - by [L3th4l] - 03.01.2011, 01:25
Re: Blocking a command - by Scenario - 03.01.2011, 01:35
Re: Blocking a command - by [L3th4l] - 03.01.2011, 01:42
Re: Blocking a command - by bigcomfycouch - 03.01.2011, 01:52
Re: Blocking a command - by Sew_Sumi - 03.01.2011, 01:53
Re: Blocking a command - by iFriSki - 03.01.2011, 02:04
Re: Blocking a command - by [L3th4l] - 03.01.2011, 02:19
Re: Blocking a command - by leong124 - 03.01.2011, 03:21
Re: Blocking a command - by Sew_Sumi - 09.01.2011, 19:51
Re: Blocking a command - by John_F - 09.01.2011, 20:20

Forum Jump:


Users browsing this thread: 1 Guest(s)