26 Errors
#1

PHP код:
CMD:import(playeridparams[])
{
        if(
PlayerInfo[playerid][pFMember] == 255) return SendClientMessageEx(playerid,COLOR_ACTIONBLUE,"> You're not a member of a Offical Family."); {
        if(
IsPlayerInRangeOfPoint(playerid4.02556.1704,-1295.8506,1044.1250) return SendClientMessageEx(playeridCOLOR_ACTIONBLUE"> You're not at the Weapon Factory located in Las Venturas."); {
        if(
PlayerInfo[playerid][pWRestricted] > 0) return SendClientMessageEx(playeridCOLOR_ACTIONBLUE"> You cannot use this as you are currently restricted from possessing weapons!");
        {
            new 
choice[32], opstring[100];
            if(
sscanf(params"s[32]S[100]"choiceopstring))
            {
                
SendClientMessageEx(playeridCOLOR_LIGHTRED"[Weapon Factory]: {FFFFFF}What weapon do you wish to import?");
                
SendClientMessageEx(playeridCOLOR_GREY"[Stock]: {FFFFFF}SDPistol ($400), Shotgun ($600), MP5 ($800) ");
                
SendClientMessageEx(playeridCOLOR_GREY"[Stock]: {FFFFFF}UZI ($600) AK47 ($1,500)");
                return 
1;
            }
            else if(
strcmp(choice,"SDPistol",true) == 0)
            {
                if(
GetPlayerCash(playerid) >= 400)
                {
                    
GivePlayerValidWeapon(playerid2399999);
                    
GivePlayerCash(playerid, -400);
                    
SendClientMessageEx(playeridCOLOR_LIGHTRED,"[Weapon Factory]: {FFFFFF}You've imported a SDPistol for $400");
                    
//SendClientMessageEx(playerid, COLOR_LIGHTRED,"[Weapon Factory]: {FFFFFF}Your SDPistol has succesfully been imported.");
                    //SendClientMessageEx(playerid, COLOR_LIGHTRED,"[Weapon Factory]: {FFFFFF}You may now pick it up at the Supply depot!");
                    
return 1;
                }
                else
                {
                    
SendClientMessageEx(playeridCOLOR_GREY,"You can't afford importing a SDPistol.");
                    return 
1;
                }
            }
            else if(
strcmp(choice,"Shotgun",true) == 0)
            {
                if(
GetPlayerCash(playerid) >= 6)
                {
                    
GivePlayerValidWeapon(playerid2599999);
                    
GivePlayerCash(playerid, -600);
                    
SendClientMessageEx(playeridCOLOR_LIGHTRED,"[Weapon Factory]: {FFFFFF}You've imported a Shotgun for $600");
                    
//SendClientMessageEx(playerid, COLOR_LIGHTRED,"[Weapon Factory]: {FFFFFF}Your Shotgun has succesfully been imported.");
                    //SendClientMessageEx(playerid, COLOR_LIGHTRED,"[Weapon Factory]: {FFFFFF}You may now pick it up at the Supply depot!");
                    
return 1;
                }
                else
                {
                    
SendClientMessageEx(playeridCOLOR_GREY,"You can't afford importing a Shotgun.");
                    return 
1;
                }
            }
            else if(
strcmp(choice,"MP5",true) == 0)
            {
                if(
GetPlayerCash(playerid) >= 800)
                {
                    
GivePlayerValidWeapon(playerid2999999);
                    
GivePlayerCash(playerid, -800);
                    
SendClientMessageEx(playeridCOLOR_LIGHTRED,"[Weapon Factory]: {FFFFFF}You've imported a MP5 for $800");
                    
//SendClientMessageEx(playerid, COLOR_LIGHTRED,"[Weapon Factory]: {FFFFFF}Your MP5 has succesfully been imported.");
                    //SendClientMessageEx(playerid, COLOR_LIGHTRED,"[Weapon Factory]: {FFFFFF}You may now pick it up at the Supply depot!");
                    
return 1;
                }
                else
                {
                    
SendClientMessageEx(playeridCOLOR_GREY,"You can't afford importing a MP5.");
                    return 
1;
                }
            }
            else if(
strcmp(choice,"UZI",true) == 0)
            {
                if(
GetPlayerCash(playerid) >= 600)
                {
                    
GivePlayerValidWeapon(playerid2899999);
                    
GivePlayerCash(playerid, -600);
                    
SendClientMessageEx(playeridCOLOR_LIGHTRED,"[Weapon Factory]: {FFFFFF}You've imported a UZI for $600");
                    
//SendClientMessageEx(playerid, COLOR_LIGHTRED,"[Weapon Factory]: {FFFFFF}Your UZI has succesfully been imported.");
                    //SendClientMessageEx(playerid, COLOR_LIGHTRED,"[Weapon Factory]: {FFFFFF}You may now pick it up at the Supply depot!");
                    
return 1;
                }
                else
                {
                    
SendClientMessageEx(playeridCOLOR_GREY,"You can't afford importing a UZI.");
                    return 
1;
                }
            }
            else if(
strcmp(choice,"AK47",true) == 0)
            {
                if(
GetPlayerCash(playerid) > 1500)
                {
                    
GivePlayerValidWeapon(playerid3099999);
                    
GivePlayerCash(playerid, -1500);
                    
SendClientMessageEx(playeridCOLOR_LIGHTRED,"[Weapon Factory]: {FFFFFF}You've imported a AK47 for $1500");
                    
//SendClientMessageEx(playerid, COLOR_LIGHTRED,"[Weapon Factory]: {FFFFFF}Your AK47 has succesfully been imported.");
                    //SendClientMessageEx(playerid, COLOR_LIGHTRED,"[Weapon Factory]: {FFFFFF}You may now pick it up at the Supply depot!");
                    
return 1;
                }
                else
                {
                    
SendClientMessageEx(playeridCOLOR_GREY,"You can't afford importing a AK47.");
                    return 
1;
                }
                return 
1;
            }
        }
    }

Errors:


Код:
C:\Users\Bart\Downloads\samp03dsvr_win32\gamemodes\lsrp.pwn(2943) : error 017: undefined symbol "ProxDetector"
C:\Users\Bart\Downloads\samp03dsvr_win32\gamemodes\lsrp.pwn(2950) : error 017: undefined symbol "ProxDetector"
C:\Users\Bart\Downloads\samp03dsvr_win32\gamemodes\lsrp.pwn(2957) : error 017: undefined symbol "ProxDetector"
C:\Users\Bart\Downloads\samp03dsvr_win32\gamemodes\lsrp.pwn(2966) : error 017: undefined symbol "ProxDetector"
C:\Users\Bart\Downloads\samp03dsvr_win32\gamemodes\lsrp.pwn(2980) : error 017: undefined symbol "ProxDetector"
C:\Users\Bart\Downloads\samp03dsvr_win32\gamemodes\lsrp.pwn(2987) : error 017: undefined symbol "ProxDetector"
C:\Users\Bart\Downloads\samp03dsvr_win32\gamemodes\lsrp.pwn(2991) : error 017: undefined symbol "GivePlayerCash"
C:\Users\Bart\Downloads\samp03dsvr_win32\gamemodes\lsrp.pwn(2994) : error 017: undefined symbol "ProxDetector"
C:\Users\Bart\Downloads\samp03dsvr_win32\gamemodes\lsrp.pwn(3001) : error 017: undefined symbol "ProxDetector"
C:\Users\Bart\Downloads\samp03dsvr_win32\gamemodes\lsrp.pwn(3009) : error 017: undefined symbol "GivePlayerCash"
C:\Users\Bart\Downloads\samp03dsvr_win32\gamemodes\lsrp.pwn(3012) : error 017: undefined symbol "ProxDetector"
C:\Users\Bart\Downloads\samp03dsvr_win32\gamemodes\lsrp.pwn(3019) : error 017: undefined symbol "ProxDetector"
C:\Users\Bart\Downloads\samp03dsvr_win32\gamemodes\lsrp.pwn(3026) : error 017: undefined symbol "ProxDetector"
C:\Users\Bart\Downloads\samp03dsvr_win32\gamemodes\lsrp.pwn(3040) : error 017: undefined symbol "ProxDetector"
C:\Users\Bart\Downloads\samp03dsvr_win32\gamemodes\lsrp.pwn(3049) : error 017: undefined symbol "ProxDetector"
C:\Users\Bart\Downloads\samp03dsvr_win32\gamemodes\lsrp.pwn(3061) : error 017: undefined symbol "ProxDetector"
C:\Users\Bart\Downloads\samp03dsvr_win32\gamemodes\lsrp.pwn(3080) : error 017: undefined symbol "ProxDetector"
C:\Users\Bart\Downloads\samp03dsvr_win32\gamemodes\lsrp.pwn(3094) : error 017: undefined symbol "ProxDetector"
C:\Users\Bart\Downloads\samp03dsvr_win32\gamemodes\lsrp.pwn(3108) : error 017: undefined symbol "ProxDetector"
C:\Users\Bart\Downloads\samp03dsvr_win32\gamemodes\lsrp.pwn(3116) : error 017: undefined symbol "GivePlayerCash"
C:\Users\Bart\Downloads\samp03dsvr_win32\gamemodes\lsrp.pwn(3121) : error 017: undefined symbol "ProxDetector"
C:\Users\Bart\Downloads\samp03dsvr_win32\gamemodes\lsrp.pwn(3280) : error 017: undefined symbol "GivePlayerCash"
C:\Users\Bart\Downloads\samp03dsvr_win32\gamemodes\lsrp.pwn(3552) : error 017: undefined symbol "GivePlayerCash"
C:\Users\Bart\Downloads\samp03dsvr_win32\gamemodes\lsrp.pwn(3553) : error 017: undefined symbol "GivePlayerCash"
C:\Users\Bart\Downloads\samp03dsvr_win32\gamemodes\lsrp.pwn(4854) : error 017: undefined symbol "NOPCheck"
C:\Users\Bart\Downloads\samp03dsvr_win32\gamemodes\lsrp.pwn(5431) : error 017: undefined symbol "NOPCheck"

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


26 Errors.
Reply
#2

Use the latest sa-mp 0.3d includes and you have most likely copied the script from somewhere and forgot to copy some functions which shows the undefined symbol error
Reply
#3

I've got the latest plugings + I've made this by myself. I only get these 26 errors when i misplaced a bracket or something like that. But i can't find the mistake i made myself.
Reply
#4

there are 38 "{" and 37 "}" if chrome is right.

EDIT:

pawn Код:
CMD:import(playerid, params[])
{
        if(PlayerInfo[playerid][pFMember] == 255) return SendClientMessageEx(playerid,COLOR_ACTIONBLUE,"> You're not a member of a Offical Family.");
        if(IsPlayerInRangeOfPoint(playerid, 4.0, 2556.1704,-1295.8506,1044.1250) return SendClientMessageEx(playerid, COLOR_ACTIONBLUE, "> You're not at the Weapon Factory located in Las Venturas.");
        if(PlayerInfo[playerid][pWRestricted] > 0) return SendClientMessageEx(playerid, COLOR_ACTIONBLUE, "> You cannot use this as you are currently restricted from possessing weapons!");
        new choice[32], opstring[100];
        if(sscanf(params, "s[32]S[100]", choice, opstring))
        {
            SendClientMessageEx(playerid, COLOR_LIGHTRED, "[Weapon Factory]: {FFFFFF}What weapon do you wish to import?");
            SendClientMessageEx(playerid, COLOR_GREY, "[Stock]: {FFFFFF}SDPistol ($400), Shotgun ($600), MP5 ($800) ");
            SendClientMessageEx(playerid, COLOR_GREY, "[Stock]: {FFFFFF}UZI ($600) AK47 ($1,500)");
            return 1;
        }
        else if(strcmp(choice,"SDPistol",true) == 0)
        {
            if(GetPlayerCash(playerid) >= 400)
            {
                GivePlayerValidWeapon(playerid, 23, 99999);
                GivePlayerCash(playerid, -400);
                SendClientMessageEx(playerid, COLOR_LIGHTRED,"[Weapon Factory]: {FFFFFF}You've imported a SDPistol for $400");
                //SendClientMessageEx(playerid, COLOR_LIGHTRED,"[Weapon Factory]: {FFFFFF}Your SDPistol has succesfully been imported.");
                //SendClientMessageEx(playerid, COLOR_LIGHTRED,"[Weapon Factory]: {FFFFFF}You may now pick it up at the Supply depot!");
                return 1;
            }
            else
            {
                SendClientMessageEx(playerid, COLOR_GREY,"You can't afford importing a SDPistol.");
                return 1;
            }
        }
        else if(strcmp(choice,"Shotgun",true) == 0)
        {
            if(GetPlayerCash(playerid) >= 6)
            {
                GivePlayerValidWeapon(playerid, 25, 99999);
                GivePlayerCash(playerid, -600);
                SendClientMessageEx(playerid, COLOR_LIGHTRED,"[Weapon Factory]: {FFFFFF}You've imported a Shotgun for $600");
                //SendClientMessageEx(playerid, COLOR_LIGHTRED,"[Weapon Factory]: {FFFFFF}Your Shotgun has succesfully been imported.");
                //SendClientMessageEx(playerid, COLOR_LIGHTRED,"[Weapon Factory]: {FFFFFF}You may now pick it up at the Supply depot!");
                return 1;
            }
            else
            {
                SendClientMessageEx(playerid, COLOR_GREY,"You can't afford importing a Shotgun.");
                return 1;
            }
        }
        else if(strcmp(choice,"MP5",true) == 0)
        {
            if(GetPlayerCash(playerid) >= 800)
            {
                GivePlayerValidWeapon(playerid, 29, 99999);
                GivePlayerCash(playerid, -800);
                SendClientMessageEx(playerid, COLOR_LIGHTRED,"[Weapon Factory]: {FFFFFF}You've imported a MP5 for $800");
                //SendClientMessageEx(playerid, COLOR_LIGHTRED,"[Weapon Factory]: {FFFFFF}Your MP5 has succesfully been imported.");
                //SendClientMessageEx(playerid, COLOR_LIGHTRED,"[Weapon Factory]: {FFFFFF}You may now pick it up at the Supply depot!");
                return 1;
            }
            else
            {
                SendClientMessageEx(playerid, COLOR_GREY,"You can't afford importing a MP5.");
                return 1;
            }
        }
        else if(strcmp(choice,"UZI",true) == 0)
        {
            if(GetPlayerCash(playerid) >= 600)
            {
                GivePlayerValidWeapon(playerid, 28, 99999);
                GivePlayerCash(playerid, -600);
                SendClientMessageEx(playerid, COLOR_LIGHTRED,"[Weapon Factory]: {FFFFFF}You've imported a UZI for $600");
                //SendClientMessageEx(playerid, COLOR_LIGHTRED,"[Weapon Factory]: {FFFFFF}Your UZI has succesfully been imported.");
                //SendClientMessageEx(playerid, COLOR_LIGHTRED,"[Weapon Factory]: {FFFFFF}You may now pick it up at the Supply depot!");
                return 1;
            }
            else
            {
                SendClientMessageEx(playerid, COLOR_GREY,"You can't afford importing a UZI.");
                return 1;
            }
        }
        else if(strcmp(choice,"AK47",true) == 0)
        {
            if(GetPlayerCash(playerid) > 1500)
            {
                GivePlayerValidWeapon(playerid, 30, 99999);
                GivePlayerCash(playerid, -1500);
                SendClientMessageEx(playerid, COLOR_LIGHTRED,"[Weapon Factory]: {FFFFFF}You've imported a AK47 for $1500");
                //SendClientMessageEx(playerid, COLOR_LIGHTRED,"[Weapon Factory]: {FFFFFF}Your AK47 has succesfully been imported.");
                //SendClientMessageEx(playerid, COLOR_LIGHTRED,"[Weapon Factory]: {FFFFFF}You may now pick it up at the Supply depot!");
                return 1;
            }
            else
            {
                SendClientMessageEx(playerid, COLOR_GREY,"You can't afford importing a AK47.");
                return 1;
            }
            return 1;
        }
}
Reply
#5

pawn Код:
CMD:import(playerid, params[])
{
        if(PlayerInfo[playerid][pFMember] == 255) return SendClientMessageEx(playerid,COLOR_ACTIONBLUE,"> You're not a member of a Offical Family.");
        if(IsPlayerInRangeOfPoint(playerid, 4.0, 2556.1704,-1295.8506,1044.1250) return SendClientMessageEx(playerid, COLOR_ACTIONBLUE, "> You're not at the Weapon Factory located in Las Venturas.");
        if(PlayerInfo[playerid][pWRestricted] > 0) return SendClientMessageEx(playerid, COLOR_ACTIONBLUE, "> You cannot use this as you are currently restricted from possessing weapons!");
        {
            new choice[32], opstring[100];
            if(sscanf(params, "s[32]S[100]", choice, opstring))
            {
                SendClientMessageEx(playerid, COLOR_LIGHTRED, "[Weapon Factory]: {FFFFFF}What weapon do you wish to import?");
                SendClientMessageEx(playerid, COLOR_GREY, "[Stock]: {FFFFFF}SDPistol ($400), Shotgun ($600), MP5 ($800) ");
                SendClientMessageEx(playerid, COLOR_GREY, "[Stock]: {FFFFFF}UZI ($600) AK47 ($1,500)");
                return 1;
            }
            else if(strcmp(choice,"SDPistol",true) == 0)
            {
                if(GetPlayerCash(playerid) >= 400)
                {
                    GivePlayerValidWeapon(playerid, 23, 99999);
                    GivePlayerCash(playerid, -400);
                    SendClientMessageEx(playerid, COLOR_LIGHTRED,"[Weapon Factory]: {FFFFFF}You've imported a SDPistol for $400");
                    //SendClientMessageEx(playerid, COLOR_LIGHTRED,"[Weapon Factory]: {FFFFFF}Your SDPistol has succesfully been imported.");
                    //SendClientMessageEx(playerid, COLOR_LIGHTRED,"[Weapon Factory]: {FFFFFF}You may now pick it up at the Supply depot!");
                    return 1;
                }
                else
                {
                    SendClientMessageEx(playerid, COLOR_GREY,"You can't afford importing a SDPistol.");
                    return 1;
                }
            }
            else if(strcmp(choice,"Shotgun",true) == 0)
            {
                if(GetPlayerCash(playerid) >= 6)
                {
                    GivePlayerValidWeapon(playerid, 25, 99999);
                    GivePlayerCash(playerid, -600);
                    SendClientMessageEx(playerid, COLOR_LIGHTRED,"[Weapon Factory]: {FFFFFF}You've imported a Shotgun for $600");
                    //SendClientMessageEx(playerid, COLOR_LIGHTRED,"[Weapon Factory]: {FFFFFF}Your Shotgun has succesfully been imported.");
                    //SendClientMessageEx(playerid, COLOR_LIGHTRED,"[Weapon Factory]: {FFFFFF}You may now pick it up at the Supply depot!");
                    return 1;
                }
                else
                {
                    SendClientMessageEx(playerid, COLOR_GREY,"You can't afford importing a Shotgun.");
                    return 1;
                }
            }
            else if(strcmp(choice,"MP5",true) == 0)
            {
                if(GetPlayerCash(playerid) >= 800)
                {
                    GivePlayerValidWeapon(playerid, 29, 99999);
                    GivePlayerCash(playerid, -800);
                    SendClientMessageEx(playerid, COLOR_LIGHTRED,"[Weapon Factory]: {FFFFFF}You've imported a MP5 for $800");
                    //SendClientMessageEx(playerid, COLOR_LIGHTRED,"[Weapon Factory]: {FFFFFF}Your MP5 has succesfully been imported.");
                    //SendClientMessageEx(playerid, COLOR_LIGHTRED,"[Weapon Factory]: {FFFFFF}You may now pick it up at the Supply depot!");
                    return 1;
                }
                else
                {
                    SendClientMessageEx(playerid, COLOR_GREY,"You can't afford importing a MP5.");
                    return 1;
                }
            }
            else if(strcmp(choice,"UZI",true) == 0)
            {
                if(GetPlayerCash(playerid) >= 600)
                {
                    GivePlayerValidWeapon(playerid, 28, 99999);
                    GivePlayerCash(playerid, -600);
                    SendClientMessageEx(playerid, COLOR_LIGHTRED,"[Weapon Factory]: {FFFFFF}You've imported a UZI for $600");
                    //SendClientMessageEx(playerid, COLOR_LIGHTRED,"[Weapon Factory]: {FFFFFF}Your UZI has succesfully been imported.");
                    //SendClientMessageEx(playerid, COLOR_LIGHTRED,"[Weapon Factory]: {FFFFFF}You may now pick it up at the Supply depot!");
                    return 1;
                }
                else
                {
                    SendClientMessageEx(playerid, COLOR_GREY,"You can't afford importing a UZI.");
                    return 1;
                }
            }
            else if(strcmp(choice,"AK47",true) == 0)
            {
                if(GetPlayerCash(playerid) > 1500)
                {
                    GivePlayerValidWeapon(playerid, 30, 99999);
                    GivePlayerCash(playerid, -1500);
                    SendClientMessageEx(playerid, COLOR_LIGHTRED,"[Weapon Factory]: {FFFFFF}You've imported a AK47 for $1500");
                    //SendClientMessageEx(playerid, COLOR_LIGHTRED,"[Weapon Factory]: {FFFFFF}Your AK47 has succesfully been imported.");
                    //SendClientMessageEx(playerid, COLOR_LIGHTRED,"[Weapon Factory]: {FFFFFF}You may now pick it up at the Supply depot!");
                    return 1;
                }
                else
                {
                    SendClientMessageEx(playerid, COLOR_GREY,"You can't afford importing a AK47.");
                    return 1;
                }
            }
        }
    }
    return 1;
}
Reply
#6

@THE_KNOWN

Quote:

C:\Users\Bart\Downloads\samp03dsvr_win32\gamemodes \lsrp.pwn(50636) : warning 225: unreachable code
C:\Users\Bart\Downloads\samp03dsvr_win32\gamemodes \lsrp.pwn(5063 : warning 209: function "cmd_import" should return a value
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


2 Warnings.

LINE 50363 TILL 50368
Quote:

return 1;
}
}

Reply
#7

pawn Код:
CMD:import(playerid, params[])
{
        if(PlayerInfo[playerid][pFMember] == 255) return SendClientMessageEx(playerid,COLOR_ACTIONBLUE,"> You're not a member of a Offical Family.");
        if(IsPlayerInRangeOfPoint(playerid, 4.0, 2556.1704,-1295.8506,1044.1250) return SendClientMessageEx(playerid, COLOR_ACTIONBLUE, "> You're not at the Weapon Factory located in Las Venturas.");
        if(PlayerInfo[playerid][pWRestricted] > 0) return SendClientMessageEx(playerid, COLOR_ACTIONBLUE, "> You cannot use this as you are currently restricted from possessing weapons!");
        new choice[32], opstring[100];
        if(sscanf(params, "s[32]S[100]", choice, opstring))
        {
            SendClientMessageEx(playerid, COLOR_LIGHTRED, "[Weapon Factory]: {FFFFFF}What weapon do you wish to import?");
            SendClientMessageEx(playerid, COLOR_GREY, "[Stock]: {FFFFFF}SDPistol ($400), Shotgun ($600), MP5 ($800) ");
            SendClientMessageEx(playerid, COLOR_GREY, "[Stock]: {FFFFFF}UZI ($600) AK47 ($1,500)");
            return 1;
        }
        else if(strcmp(choice,"SDPistol",true) == 0)
        {
            if(GetPlayerCash(playerid) >= 400)
            {
                GivePlayerValidWeapon(playerid, 23, 99999);
                GivePlayerCash(playerid, -400);
                SendClientMessageEx(playerid, COLOR_LIGHTRED,"[Weapon Factory]: {FFFFFF}You've imported a SDPistol for $400");
                //SendClientMessageEx(playerid, COLOR_LIGHTRED,"[Weapon Factory]: {FFFFFF}Your SDPistol has succesfully been imported.");
                //SendClientMessageEx(playerid, COLOR_LIGHTRED,"[Weapon Factory]: {FFFFFF}You may now pick it up at the Supply depot!");
                return 1;
            }
            else
            {
                SendClientMessageEx(playerid, COLOR_GREY,"You can't afford importing a SDPistol.");
                return 1;
            }
        }
        else if(strcmp(choice,"Shotgun",true) == 0)
        {
            if(GetPlayerCash(playerid) >= 6)
            {
                GivePlayerValidWeapon(playerid, 25, 99999);
                GivePlayerCash(playerid, -600);
                SendClientMessageEx(playerid, COLOR_LIGHTRED,"[Weapon Factory]: {FFFFFF}You've imported a Shotgun for $600");
                //SendClientMessageEx(playerid, COLOR_LIGHTRED,"[Weapon Factory]: {FFFFFF}Your Shotgun has succesfully been imported.");
                //SendClientMessageEx(playerid, COLOR_LIGHTRED,"[Weapon Factory]: {FFFFFF}You may now pick it up at the Supply depot!");
                return 1;
            }
            else
            {
                SendClientMessageEx(playerid, COLOR_GREY,"You can't afford importing a Shotgun.");
                return 1;
            }
        }
        else if(strcmp(choice,"MP5",true) == 0)
        {
            if(GetPlayerCash(playerid) >= 800)
            {
                GivePlayerValidWeapon(playerid, 29, 99999);
                GivePlayerCash(playerid, -800);
                SendClientMessageEx(playerid, COLOR_LIGHTRED,"[Weapon Factory]: {FFFFFF}You've imported a MP5 for $800");
                //SendClientMessageEx(playerid, COLOR_LIGHTRED,"[Weapon Factory]: {FFFFFF}Your MP5 has succesfully been imported.");
                //SendClientMessageEx(playerid, COLOR_LIGHTRED,"[Weapon Factory]: {FFFFFF}You may now pick it up at the Supply depot!");
                return 1;
            }
            else
            {
                SendClientMessageEx(playerid, COLOR_GREY,"You can't afford importing a MP5.");
                return 1;
            }
        }
        else if(strcmp(choice,"UZI",true) == 0)
        {
            if(GetPlayerCash(playerid) >= 600)
            {
                GivePlayerValidWeapon(playerid, 28, 99999);
                GivePlayerCash(playerid, -600);
                SendClientMessageEx(playerid, COLOR_LIGHTRED,"[Weapon Factory]: {FFFFFF}You've imported a UZI for $600");
                //SendClientMessageEx(playerid, COLOR_LIGHTRED,"[Weapon Factory]: {FFFFFF}Your UZI has succesfully been imported.");
                //SendClientMessageEx(playerid, COLOR_LIGHTRED,"[Weapon Factory]: {FFFFFF}You may now pick it up at the Supply depot!");
                return 1;
            }
            else
            {
                SendClientMessageEx(playerid, COLOR_GREY,"You can't afford importing a UZI.");
                return 1;
            }
        }
        else if(strcmp(choice,"AK47",true) == 0)
        {
            if(GetPlayerCash(playerid) > 1500)
            {
                GivePlayerValidWeapon(playerid, 30, 99999);
                GivePlayerCash(playerid, -1500);
                SendClientMessageEx(playerid, COLOR_LIGHTRED,"[Weapon Factory]: {FFFFFF}You've imported a AK47 for $1500");
                //SendClientMessageEx(playerid, COLOR_LIGHTRED,"[Weapon Factory]: {FFFFFF}Your AK47 has succesfully been imported.");
                //SendClientMessageEx(playerid, COLOR_LIGHTRED,"[Weapon Factory]: {FFFFFF}You may now pick it up at the Supply depot!");
                return 1;
            }
            else
            {
                SendClientMessageEx(playerid, COLOR_GREY,"You can't afford importing a AK47.");
                return 1;
            }
        }
        return 1;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)