SA-MP Forums Archive
Bracket Help ++++Rep - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Bracket Help ++++Rep (/showthread.php?tid=384635)



Bracket Help ++++Rep - Joshman543 - 12.10.2012

Ok well I know this is a bracket error, because I get 26 errors when compiling.
Here is the code:

Code:
if(strcmp(cmd, "/mi5equip", true) == 0) // By Josh_McArtin
		{
	    	if(IsPlayerConnected(playerid))
	    	{
				if(IsPlayerInRangeOfPoint(playerid, 6, 1457.684,-1761.504,3285.285))//Equip for MI5
				{
                	SendClientMessage(playerid,COLOR_GREY,"** This Refill Point is Only for the MI5");
					return 1;
				}
					new mi5equip[] = "1\tSpy\n2\tAgent\n3\tSpecial Agent\n4\tCoordinator of Intelligence\n5\tDeputy Director General\n6\tDirector General
	    			ShowPlayerDialog(playerid,51,DIALOG_STYLE_LIST,"List of Equips:",mi5equip,"Select","Cancel");
	    			SendClientMessage(playerid, COLOR_GREY,"* REMEMBER, You may not be able to Select EVERYTHING");
	    			}
	    		}
			}



Re: Bracket Help ++++Rep - gtakillerIV - 12.10.2012

Here:

PHP Code:
if(strcmp(cmd"/mi5equip"true) == 0// By Josh_McArtin
{
    if(
IsPlayerConnected(playerid))
    {
        if(
IsPlayerInRangeOfPoint(playerid61457.684,-1761.504,3285.285))//Equip for MI5
        
{
             
SendClientMessage(playerid,COLOR_GREY,"** This Refill Point is Only for the MI5");
        }
        new 
mi5equip[] = "1\tSpy\n2\tAgent\n3\tSpecial Agent\n4\tCoordinator of Intelligence\n5\tDeputy Director General\n6\tDirector General";
        
ShowPlayerDialog(playerid,51,DIALOG_STYLE_LIST,"List of Equips:",mi5equip,"Select","Cancel");
        
SendClientMessage(playeridCOLOR_GREY,"* REMEMBER, You may not be able to Select EVERYTHING");
    }
    return 
1;




Re: Bracket Help ++++Rep - SwisherSweet - 12.10.2012

here you go sir...
Code:
if(strcmp(cmd, "/mi5equip", true) == 0) // By Josh_McArtin 
{ 
    if(IsPlayerConnected(playerid)) 
    { 
        if(IsPlayerInRangeOfPoint(playerid, 6, 1457.684,-1761.504,3285.285))//Equip for MI5 
        { 
             SendClientMessage(playerid,COLOR_GREY,"** This Refill Point is Only for the MI5"); 
            return 1; 
        } 
        new mi5equip[] = "1\tSpy\n2\tAgent\n3\tSpecial Agent\n4\tCoordinator of Intelligence\n5\tDeputy Director General\n6\tDirector General 
        ShowPlayerDialog(playerid,51,DIALOG_STYLE_LIST,"List of Equips:",mi5equip,"Select","Cancel"); 
        SendClientMessage(playerid, COLOR_GREY,"* REMEMBER, You may not be able to Select EVERYTHING"); 
    } 
}



Re: Bracket Help ++++Rep - Biess - 13.10.2012

Where do you return a value?


Re: Bracket Help ++++Rep - M3mPHi$_S3 - 13.10.2012

PHP Code:
if(strcmp(cmd"/mi5equip"true) == 0// By Josh_McArtin 

    if(
IsPlayerConnected(playerid)) 
    { 
        if(
IsPlayerInRangeOfPoint(playerid61457.684,-1761.504,3285.285))//Equip for MI5 
        
SendClientMessage(playerid,COLOR_GREY,"** This Refill Point is Only for the MI5"); 
          
    new 
mi5equip[] = "1\tSpy\n2\tAgent\n3\tSpecial Agent\n4\tCoordinator of Intelligence\n5\tDeputy Director General\n6\tDirector General"
    
ShowPlayerDialog(playerid,51,DIALOG_STYLE_LIST,"List of Equips:",mi5equip,"Select","Cancel"); 
    
SendClientMessage(playeridCOLOR_GREY,"* REMEMBER, You may not be able to Select EVERYTHING");    
    return 
1