problem, help me
#1

I have this code, i'm trying to make it that i have to be level 1 admin to to use /bush i think it's something wrong with my brackets help, when ever i compile it i get over 26 errors.

here is the pAdmin code
Код:
if(pAdmin[playerid] >= 1)
{
Код:
//--------------------[bush]-----------------------------

		if ( !strcmp( "/bush", cmdtext, true ) )
		{
		  tmp = strtok(cmdtext, idx);
          if(!strlen(tmp))
      

		
				if ( BushEnabled[playerid] )
				{
				

					DestroyObject( BushObject[playerid] );
 			 		SendClientMessage(playerid, 0xDEEE20FF, "The Bush is Disabled.");
					BushEnabled[playerid] = false;
		  			return 1;
 				}
 				
 				  if(pAdmin[playerid] >= 1)
{
					BushObject [playerid] = CreateObject( 800, 0, 0, 0, 0, 0, 0 );
					BushEnabled[playerid] = true;
  			  SendClientMessage(playerid, 0xDEEE20FF, "The Bush is Enabled.");
					AttachObjectToPlayer( BushObject[playerid], playerid, 0, 0, 0, 0, 0, 0 );
					return 1;
		}
Reply


Messages In This Thread
problem, help me - by Pinehole - 16.10.2009, 02:57
Re: problem, help me - by Pinehole - 16.10.2009, 03:28
Re: problem, help me - by vafapoor - 16.10.2009, 03:32
Re: problem, help me - by Pinehole - 16.10.2009, 03:35
Re: problem, help me - by Pghpunkid - 16.10.2009, 06:36
Re: problem, help me - by Pinehole - 16.10.2009, 13:12
Re: problem, help me - by Pghpunkid - 16.10.2009, 18:54
Re: problem, help me - by Peter_Corneile - 16.10.2009, 19:40
Re: problem, help me - by Pghpunkid - 17.10.2009, 01:38

Forum Jump:


Users browsing this thread: 1 Guest(s)