How can i fix this?
#1

pawn Code:
if(strcmp(cmd, "/buygun", true) == 0) // Trunk system
    {
        if(IsPlayerConnected(playerid))
        {
            if(IsPlayerInRangeOfPoint(playerid, 100.0, 286.0414,-38.7380,1001.5156))
            Get x_nr[64];
            {
            x_nr = strtok(cmdtext, idx);
            if(!strlen(x_nr))
            {
                SendClientMessage(playerid, COLOR_WHITE, "HINT: /buygun [name]");
                SendClientMessage(playerid, COLOR_WHITE, "Available guns: Deagle($15,000) | MP5($5,000) | M4($75,000) | AK47($70,000)");
                return 1;
            }
            if(strcmp(x_nr,"deagle",true) == 0)
            {
                        {
                        if(PlayerInfo[playerid][pInBiz] == 255)
                        {
                            SendClientMessage(playerid, COLOR_GREY, "  You need to be in a ammu nation business to buy this gun!");
                            return 1;
                        }
                        if(PlayerInfo[playerid][pCash] < 15000)
                        {
                            SendClientMessage(playerid, COLOR_GREY, "ERROR: You cannot afford this !");
                            return 1;
                        }
                        new bizid = PlayerInfo[playerid][pInBiz];
                        PlayerInfo[bizid][bTill] += 7500;
                        PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]-15000;
                        GivePlayerMoney(playerid, -15000);
                        SendClientMessage(playerid, COLOR_GREY, " You bought a Desert Eagle for ($15,000)!");
                        GivePlayerGun(playerid, 24);
                        return 1;
                        }
            }
            if(strcmp(x_nr,"m4",true) == 0)
            {
                        {
                        if(PlayerInfo[playerid][pInBiz] == 255)
                        {
                            SendClientMessage(playerid, COLOR_GREY, "  You need to be in a ammu nation business to buy this gun!");
                            return 1;
                        }
                        if(PlayerInfo[playerid][pCash] < 75000)
                        {
                            SendClientMessage(playerid, COLOR_GREY, "ERROR: You cannot afford this !");
                            return 1;
                        }
                        new bizid = PlayerInfo[playerid][pInBiz];
                        PlayerInfo[bizid][bTill] += 37500;
                        PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]-75000;
                        GivePlayerMoney(playerid, -75000);
                        SendClientMessage(playerid, COLOR_GREY, " You bought a M4 for ($75,000)!");
                        GivePlayerGun(playerid, 31);
                        return 1;
                        }
            }
            if(strcmp(x_nr,"ak47",true) == 0)
            {
                        {
                        if(PlayerInfo[playerid][pInBiz] == 255)
                        {
                            SendClientMessage(playerid, COLOR_GREY, "  You need to be in a ammu nation business to buy this gun!");
                            return 1;
                        }
                        if(PlayerInfo[playerid][pCash] < 70000)
                        {
                            SendClientMessage(playerid, COLOR_GREY, "ERROR: You cannot afford this !");
                            return 1;
                        }
                        new bizid = PlayerInfo[playerid][pInBiz];
                        PlayerInfo[bizid][bTill] += 35000;
                        PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]-70000;
                        GivePlayerMoney(playerid, -70000);
                        SendClientMessage(playerid, COLOR_GREY, " You bought a AK47 for ($70,000)!");
                        GivePlayerGun(playerid, 30);
                        return 1;
                        }
            }
            if(strcmp(x_nr,"mp5",true) == 0)
            {
                        {
                        if(PlayerInfo[playerid][pInBiz] == 255)
                        {
                            SendClientMessage(playerid, COLOR_GREY, "  You need to be in a ammu nation business to buy this gun!");
                            return 1;
                        }
                        if(PlayerInfo[playerid][pCash] < 5000)
                        {
                            SendClientMessage(playerid, COLOR_GREY, "ERROR: You cannot afford this !");
                            return 1;
                        }
                        new bizid = PlayerInfo[playerid][pInBiz];
                        PlayerInfo[bizid][bTill] += 2500;
                        PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]-5000;
                        GivePlayerMoney(playerid, -5000);
                        SendClientMessage(playerid, COLOR_GREY, " You bought a MP5 for ($5,000)!");
                        GivePlayerGun(playerid, 29);
                        return 1;
                        }
            }
            else
            {
                SendClientMessage(playerid, COLOR_WHITE, "HINT: /buygun [name]");
                SendClientMessage(playerid, COLOR_WHITE, "Available guns: Deagle($15,000) | MP5($5,000) | M4($75,000) | AK47($70,000)");
                return 1;
            }
            }
        }
        return 1;
    }
I got errors compiling..But i dont know how to fix.


Code:
C:\Users\AztecasGamerzzz\Desktop\Sa-Mp Servers\NE-RP v3.2\gamemodes\NE-RP.pwn(3982) : warning 217: loose indentation
C:\Users\AztecasGamerzzz\Desktop\Sa-Mp Servers\NE-RP v3.2\gamemodes\NE-RP.pwn(3989) : warning 217: loose indentation
C:\Users\AztecasGamerzzz\Desktop\Sa-Mp Servers\NE-RP v3.2\gamemodes\NE-RP.pwn(3997) : warning 219: local variable "sendername" shadows a variable at a preceding level
C:\Users\AztecasGamerzzz\Desktop\Sa-Mp Servers\NE-RP v3.2\gamemodes\NE-RP.pwn(4258) : warning 219: local variable "sendername" shadows a variable at a preceding level
C:\Users\AztecasGamerzzz\Desktop\Sa-Mp Servers\NE-RP v3.2\gamemodes\NE-RP.pwn(4334) : warning 219: local variable "sendername" shadows a variable at a preceding level
C:\Users\AztecasGamerzzz\Desktop\Sa-Mp Servers\NE-RP v3.2\gamemodes\NE-RP.pwn(4374) : warning 217: loose indentation
C:\Users\AztecasGamerzzz\Desktop\Sa-Mp Servers\NE-RP v3.2\gamemodes\NE-RP.pwn(4428) : warning 217: loose indentation
C:\Users\AztecasGamerzzz\Desktop\Sa-Mp Servers\NE-RP v3.2\gamemodes\NE-RP.pwn(5159) : warning 219: local variable "sendername" shadows a variable at a preceding level
C:\Users\AztecasGamerzzz\Desktop\Sa-Mp Servers\NE-RP v3.2\gamemodes\NE-RP.pwn(5165) : warning 202: number of arguments does not match definition
C:\Users\AztecasGamerzzz\Desktop\Sa-Mp Servers\NE-RP v3.2\gamemodes\NE-RP.pwn(5403) : warning 219: local variable "sendername" shadows a variable at a preceding level
C:\Users\AztecasGamerzzz\Desktop\Sa-Mp Servers\NE-RP v3.2\gamemodes\NE-RP.pwn(6051) : warning 219: local variable "sendername" shadows a variable at a preceding level
C:\Users\AztecasGamerzzz\Desktop\Sa-Mp Servers\NE-RP v3.2\gamemodes\NE-RP.pwn(6840) : warning 219: local variable "sendername" shadows a variable at a preceding level
C:\Users\AztecasGamerzzz\Desktop\Sa-Mp Servers\NE-RP v3.2\gamemodes\NE-RP.pwn(7292) : warning 219: local variable "sendername" shadows a variable at a preceding level
C:\Users\AztecasGamerzzz\Desktop\Sa-Mp Servers\NE-RP v3.2\gamemodes\NE-RP.pwn(8978) : warning 217: loose indentation
C:\Users\AztecasGamerzzz\Desktop\Sa-Mp Servers\NE-RP v3.2\gamemodes\NE-RP.pwn(9003) : warning 217: loose indentation
C:\Users\AztecasGamerzzz\Desktop\Sa-Mp Servers\NE-RP v3.2\gamemodes\NE-RP.pwn(9836) : warning 219: local variable "sendername" shadows a variable at a preceding level
C:\Users\AztecasGamerzzz\Desktop\Sa-Mp Servers\NE-RP v3.2\gamemodes\NE-RP.pwn(10313) : warning 219: local variable "sendername" shadows a variable at a preceding level
C:\Users\AztecasGamerzzz\Desktop\Sa-Mp Servers\NE-RP v3.2\gamemodes\NE-RP.pwn(10639) : warning 219: local variable "sendername" shadows a variable at a preceding level
C:\Users\AztecasGamerzzz\Desktop\Sa-Mp Servers\NE-RP v3.2\gamemodes\NE-RP.pwn(10838) : warning 219: local variable "sendername" shadows a variable at a preceding level
C:\Users\AztecasGamerzzz\Desktop\Sa-Mp Servers\NE-RP v3.2\gamemodes\NE-RP.pwn(11255) : warning 219: local variable "sendername" shadows a variable at a preceding level
C:\Users\AztecasGamerzzz\Desktop\Sa-Mp Servers\NE-RP v3.2\gamemodes\NE-RP.pwn(11296) : warning 219: local variable "sendername" shadows a variable at a preceding level
C:\Users\AztecasGamerzzz\Desktop\Sa-Mp Servers\NE-RP v3.2\gamemodes\NE-RP.pwn(11450) : warning 219: local variable "sendername" shadows a variable at a preceding level
C:\Users\AztecasGamerzzz\Desktop\Sa-Mp Servers\NE-RP v3.2\gamemodes\NE-RP.pwn(11721) : warning 217: loose indentation
C:\Users\AztecasGamerzzz\Desktop\Sa-Mp Servers\NE-RP v3.2\gamemodes\NE-RP.pwn(11726) : warning 217: loose indentation
C:\Users\AztecasGamerzzz\Desktop\Sa-Mp Servers\NE-RP v3.2\gamemodes\NE-RP.pwn(11759) : warning 217: loose indentation
C:\Users\AztecasGamerzzz\Desktop\Sa-Mp Servers\NE-RP v3.2\gamemodes\NE-RP.pwn(11769) : warning 217: loose indentation
C:\Users\AztecasGamerzzz\Desktop\Sa-Mp Servers\NE-RP v3.2\gamemodes\NE-RP.pwn(11774) : warning 217: loose indentation
C:\Users\AztecasGamerzzz\Desktop\Sa-Mp Servers\NE-RP v3.2\gamemodes\NE-RP.pwn(12957) : warning 202: number of arguments does not match definition
C:\Users\AztecasGamerzzz\Desktop\Sa-Mp Servers\NE-RP v3.2\gamemodes\NE-RP.pwn(12957) : warning 202: number of arguments does not match definition
C:\Users\AztecasGamerzzz\Desktop\Sa-Mp Servers\NE-RP v3.2\gamemodes\NE-RP.pwn(12962) : warning 202: number of arguments does not match definition
C:\Users\AztecasGamerzzz\Desktop\Sa-Mp Servers\NE-RP v3.2\gamemodes\NE-RP.pwn(12962) : warning 202: number of arguments does not match definition
C:\Users\AztecasGamerzzz\Desktop\Sa-Mp Servers\NE-RP v3.2\gamemodes\NE-RP.pwn(13131) : warning 219: local variable "sendername" shadows a variable at a preceding level
C:\Users\AztecasGamerzzz\Desktop\Sa-Mp Servers\NE-RP v3.2\gamemodes\NE-RP.pwn(14429) : warning 217: loose indentation
C:\Users\AztecasGamerzzz\Desktop\Sa-Mp Servers\NE-RP v3.2\gamemodes\NE-RP.pwn(15015) : warning 217: loose indentation
C:\Users\AztecasGamerzzz\Desktop\Sa-Mp Servers\NE-RP v3.2\gamemodes\NE-RP.pwn(15019) : warning 217: loose indentation
C:\Users\AztecasGamerzzz\Desktop\Sa-Mp Servers\NE-RP v3.2\gamemodes\NE-RP.pwn(16411) : warning 217: loose indentation
C:\Users\AztecasGamerzzz\Desktop\Sa-Mp Servers\NE-RP v3.2\gamemodes\NE-RP.pwn(16482) : warning 217: loose indentation
C:\Users\AztecasGamerzzz\Desktop\Sa-Mp Servers\NE-RP v3.2\gamemodes\NE-RP.pwn(19399) : warning 217: loose indentation
C:\Users\AztecasGamerzzz\Desktop\Sa-Mp Servers\NE-RP v3.2\gamemodes\NE-RP.pwn(19569) : warning 217: loose indentation
C:\Users\AztecasGamerzzz\Desktop\Sa-Mp Servers\NE-RP v3.2\gamemodes\NE-RP.pwn(21903) : warning 217: loose indentation
C:\Users\AztecasGamerzzz\Desktop\Sa-Mp Servers\NE-RP v3.2\gamemodes\NE-RP.pwn(21918) : warning 217: loose indentation
C:\Users\AztecasGamerzzz\Desktop\Sa-Mp Servers\NE-RP v3.2\gamemodes\NE-RP.pwn(22526) : warning 219: local variable "sendername" shadows a variable at a preceding level
C:\Users\AztecasGamerzzz\Desktop\Sa-Mp Servers\NE-RP v3.2\gamemodes\NE-RP.pwn(22647) : warning 217: loose indentation
C:\Users\AztecasGamerzzz\Desktop\Sa-Mp Servers\NE-RP v3.2\gamemodes\NE-RP.pwn(22649) : warning 217: loose indentation
C:\Users\AztecasGamerzzz\Desktop\Sa-Mp Servers\NE-RP v3.2\gamemodes\NE-RP.pwn(22651) : warning 217: loose indentation
C:\Users\AztecasGamerzzz\Desktop\Sa-Mp Servers\NE-RP v3.2\gamemodes\NE-RP.pwn(22652) : warning 217: loose indentation
C:\Users\AztecasGamerzzz\Desktop\Sa-Mp Servers\NE-RP v3.2\gamemodes\NE-RP.pwn(22661) : warning 217: loose indentation
C:\Users\AztecasGamerzzz\Desktop\Sa-Mp Servers\NE-RP v3.2\gamemodes\NE-RP.pwn(22662) : warning 217: loose indentation
C:\Users\AztecasGamerzzz\Desktop\Sa-Mp Servers\NE-RP v3.2\gamemodes\NE-RP.pwn(22675) : warning 217: loose indentation
C:\Users\AztecasGamerzzz\Desktop\Sa-Mp Servers\NE-RP v3.2\gamemodes\NE-RP.pwn(22676) : warning 217: loose indentation
C:\Users\AztecasGamerzzz\Desktop\Sa-Mp Servers\NE-RP v3.2\gamemodes\NE-RP.pwn(22678) : warning 217: loose indentation
C:\Users\AztecasGamerzzz\Desktop\Sa-Mp Servers\NE-RP v3.2\gamemodes\NE-RP.pwn(22679) : warning 217: loose indentation
C:\Users\AztecasGamerzzz\Desktop\Sa-Mp Servers\NE-RP v3.2\gamemodes\NE-RP.pwn(22889) : warning 217: loose indentation
C:\Users\AztecasGamerzzz\Desktop\Sa-Mp Servers\NE-RP v3.2\gamemodes\NE-RP.pwn(22891) : warning 217: loose indentation
C:\Users\AztecasGamerzzz\Desktop\Sa-Mp Servers\NE-RP v3.2\gamemodes\NE-RP.pwn(22893) : warning 217: loose indentation
C:\Users\AztecasGamerzzz\Desktop\Sa-Mp Servers\NE-RP v3.2\gamemodes\NE-RP.pwn(22894) : warning 217: loose indentation
C:\Users\AztecasGamerzzz\Desktop\Sa-Mp Servers\NE-RP v3.2\gamemodes\NE-RP.pwn(22903) : warning 217: loose indentation
C:\Users\AztecasGamerzzz\Desktop\Sa-Mp Servers\NE-RP v3.2\gamemodes\NE-RP.pwn(22904) : warning 217: loose indentation
C:\Users\AztecasGamerzzz\Desktop\Sa-Mp Servers\NE-RP v3.2\gamemodes\NE-RP.pwn(22917) : warning 217: loose indentation
C:\Users\AztecasGamerzzz\Desktop\Sa-Mp Servers\NE-RP v3.2\gamemodes\NE-RP.pwn(22918) : warning 217: loose indentation
C:\Users\AztecasGamerzzz\Desktop\Sa-Mp Servers\NE-RP v3.2\gamemodes\NE-RP.pwn(22920) : warning 217: loose indentation
C:\Users\AztecasGamerzzz\Desktop\Sa-Mp Servers\NE-RP v3.2\gamemodes\NE-RP.pwn(22921) : warning 217: loose indentation
C:\Users\AztecasGamerzzz\Desktop\Sa-Mp Servers\NE-RP v3.2\gamemodes\NE-RP.pwn(22922) : warning 217: loose indentation
C:\Users\AztecasGamerzzz\Desktop\Sa-Mp Servers\NE-RP v3.2\gamemodes\NE-RP.pwn(22923) : warning 217: loose indentation
C:\Users\AztecasGamerzzz\Desktop\Sa-Mp Servers\NE-RP v3.2\gamemodes\NE-RP.pwn(23878) : warning 219: local variable "sendername" shadows a variable at a preceding level
C:\Users\AztecasGamerzzz\Desktop\Sa-Mp Servers\NE-RP v3.2\gamemodes\NE-RP.pwn(24066) : warning 217: loose indentation
C:\Users\AztecasGamerzzz\Desktop\Sa-Mp Servers\NE-RP v3.2\gamemodes\NE-RP.pwn(24067) : warning 217: loose indentation
C:\Users\AztecasGamerzzz\Desktop\Sa-Mp Servers\NE-RP v3.2\gamemodes\NE-RP.pwn(24071) : warning 217: loose indentation
C:\Users\AztecasGamerzzz\Desktop\Sa-Mp Servers\NE-RP v3.2\gamemodes\NE-RP.pwn(24096) : warning 217: loose indentation
C:\Users\AztecasGamerzzz\Desktop\Sa-Mp Servers\NE-RP v3.2\gamemodes\NE-RP.pwn(24098) : warning 217: loose indentation
C:\Users\AztecasGamerzzz\Desktop\Sa-Mp Servers\NE-RP v3.2\gamemodes\NE-RP.pwn(24122) : warning 217: loose indentation
C:\Users\AztecasGamerzzz\Desktop\Sa-Mp Servers\NE-RP v3.2\gamemodes\NE-RP.pwn(24131) : warning 217: loose indentation
C:\Users\AztecasGamerzzz\Desktop\Sa-Mp Servers\NE-RP v3.2\gamemodes\NE-RP.pwn(24151) : warning 217: loose indentation
C:\Users\AztecasGamerzzz\Desktop\Sa-Mp Servers\NE-RP v3.2\gamemodes\NE-RP.pwn(24169) : warning 217: loose indentation
C:\Users\AztecasGamerzzz\Desktop\Sa-Mp Servers\NE-RP v3.2\gamemodes\NE-RP.pwn(24292) : warning 217: loose indentation
C:\Users\AztecasGamerzzz\Desktop\Sa-Mp Servers\NE-RP v3.2\gamemodes\NE-RP.pwn(24308) : warning 217: loose indentation
C:\Users\AztecasGamerzzz\Desktop\Sa-Mp Servers\NE-RP v3.2\gamemodes\NE-RP.pwn(24602) : warning 217: loose indentation
C:\Users\AztecasGamerzzz\Desktop\Sa-Mp Servers\NE-RP v3.2\gamemodes\NE-RP.pwn(24643) : warning 217: loose indentation
C:\Users\AztecasGamerzzz\Desktop\Sa-Mp Servers\NE-RP v3.2\gamemodes\NE-RP.pwn(24648) : error 017: undefined symbol "Get"
C:\Users\AztecasGamerzzz\Desktop\Sa-Mp Servers\NE-RP v3.2\gamemodes\NE-RP.pwn(24648) : error 017: undefined symbol "x_nr"
C:\Users\AztecasGamerzzz\Desktop\Sa-Mp Servers\NE-RP v3.2\gamemodes\NE-RP.pwn(24648) : warning 215: expression has no effect
C:\Users\AztecasGamerzzz\Desktop\Sa-Mp Servers\NE-RP v3.2\gamemodes\NE-RP.pwn(24648) : error 001: expected token: ";", but found "]"
C:\Users\AztecasGamerzzz\Desktop\Sa-Mp Servers\NE-RP v3.2\gamemodes\NE-RP.pwn(24648) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


4 Errors.
Reply
#2

Didn't we already go through this?

You have a variable that is the same as one you already defined, "Sendername"
"number of arguments does not match definition" You're not using a function correctly.
"loose indentation" Your code isn't indented correctly.
"expected token: ";", but found "]"" Goto the line, and put a ";"
undefined symbol "x_nr"
Code:
new x_nr;
Reply
#3

Code:
	if(strcmp(cmd, "/buygun", true) == 0) // Trunk system
    {
        if(IsPlayerConnected(playerid))
        {
            if(IsPlayerInRangeOfPoint(playerid, 100.0, 286.0414,-38.7380,1001.5156))
            {
	            new x_nr[64];
	            x_nr = strtok(cmdtext, idx);
	            if(!strlen(x_nr))
	            {
	                SendClientMessage(playerid, COLOR_WHITE, "HINT: /buygun [name]");
	                SendClientMessage(playerid, COLOR_WHITE, "Available guns: Deagle($15,000) | MP5($5,000) | M4($75,000) | AK47($70,000)");
	                return 1;
	            }
	            if(strcmp(x_nr,"deagle",true) == 0)
	            {
	                if(PlayerInfo[playerid][pInBiz] == 255)
	                {
	                    SendClientMessage(playerid, COLOR_GREY, "  You need to be in a ammu nation business to buy this gun!");
	                    return 1;
	                }
	                if(PlayerInfo[playerid][pCash] < 15000)
	                {
	                    SendClientMessage(playerid, COLOR_GREY, "ERROR: You cannot afford this !");
	                    return 1;
	                }
	                new bizid = PlayerInfo[playerid][pInBiz];
	                PlayerInfo[bizid][bTill] += 7500;
	                PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]-15000;
	                GivePlayerMoney(playerid, -15000);
	                SendClientMessage(playerid, COLOR_GREY, " You bought a Desert Eagle for ($15,000)!");
	                GivePlayerGun(playerid, 24);
	                return 1;
	            }
	            if(strcmp(x_nr,"m4",true) == 0)
	            {
                    if(PlayerInfo[playerid][pInBiz] == 255)
                    {
                        SendClientMessage(playerid, COLOR_GREY, "  You need to be in a ammu nation business to buy this gun!");
                        return 1;
                    }
                    if(PlayerInfo[playerid][pCash] < 75000)
                    {
                        SendClientMessage(playerid, COLOR_GREY, "ERROR: You cannot afford this !");
                        return 1;
                    }
                    new bizid = PlayerInfo[playerid][pInBiz];
                    PlayerInfo[bizid][bTill] += 37500;
                    PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]-75000;
                    GivePlayerMoney(playerid, -75000);
                    SendClientMessage(playerid, COLOR_GREY, " You bought a M4 for ($75,000)!");
                    GivePlayerGun(playerid, 31);
                    return 1;
	            }
	            if(strcmp(x_nr,"ak47",true) == 0)
	            {
                    if(PlayerInfo[playerid][pInBiz] == 255)
                    {
                        SendClientMessage(playerid, COLOR_GREY, "  You need to be in a ammu nation business to buy this gun!");
                        return 1;
                    }
                    if(PlayerInfo[playerid][pCash] < 70000)
                    {
                        SendClientMessage(playerid, COLOR_GREY, "ERROR: You cannot afford this !");
                        return 1;
                    }
                    new bizid = PlayerInfo[playerid][pInBiz];
                    PlayerInfo[bizid][bTill] += 35000;
                    PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]-70000;
                    GivePlayerMoney(playerid, -70000);
                    SendClientMessage(playerid, COLOR_GREY, " You bought a AK47 for ($70,000)!");
                    GivePlayerGun(playerid, 30);
                    return 1;
	            }
	            if(strcmp(x_nr,"mp5",true) == 0)
	            {
                    if(PlayerInfo[playerid][pInBiz] == 255)
                    {
                        SendClientMessage(playerid, COLOR_GREY, "  You need to be in a ammu nation business to buy this gun!");
                        return 1;
                    }
                    if(PlayerInfo[playerid][pCash] < 5000)
                    {
                        SendClientMessage(playerid, COLOR_GREY, "ERROR: You cannot afford this !");
                        return 1;
                    }
                    new bizid = PlayerInfo[playerid][pInBiz];
                    PlayerInfo[bizid][bTill] += 2500;
                    PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]-5000;
                    GivePlayerMoney(playerid, -5000);
                    SendClientMessage(playerid, COLOR_GREY, " You bought a MP5 for ($5,000)!");
                    GivePlayerGun(playerid, 29);
                    return 1;
	            }
	            else
	            {
	                SendClientMessage(playerid, COLOR_WHITE, "HINT: /buygun [name]");
	                SendClientMessage(playerid, COLOR_WHITE, "Available guns: Deagle($15,000) | MP5($5,000) | M4($75,000) | AK47($70,000)");
	                return 1;
	            }
            }
        }
        return 1;
    }
/Spoonfed.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)