How can i fix this errors?
#1

Code:
C:\Users\AztecasGamerzzz\Desktop\GOod Servers\TRRP v1.0\gamemodes\trrp.pwn(28058) : warning 219: local variable "idcar" shadows a variable at a preceding level
C:\Users\AztecasGamerzzz\Desktop\GOod Servers\TRRP v1.0\gamemodes\trrp.pwn(54912) : warning 217: loose indentation
C:\Users\AztecasGamerzzz\Desktop\GOod Servers\TRRP v1.0\gamemodes\trrp.pwn(54953) : error 017: undefined symbol "GivePlayerAdminGun"
C:\Users\AztecasGamerzzz\Desktop\GOod Servers\TRRP v1.0\gamemodes\trrp.pwn(54962) : warning 217: loose indentation
C:\Users\AztecasGamerzzz\Desktop\GOod Servers\TRRP v1.0\gamemodes\trrp.pwn(55002) : error 017: undefined symbol "GivePlayerWeaponAll"
C:\Users\AztecasGamerzzz\Desktop\GOod Servers\TRRP v1.0\gamemodes\trrp.pwn(55003) : error 017: undefined symbol "GivePlayerWeaponAll"
C:\Users\AztecasGamerzzz\Desktop\GOod Servers\TRRP v1.0\gamemodes\trrp.pwn(55004) : error 017: undefined symbol "GivePlayerWeaponAll"
C:\Users\AztecasGamerzzz\Desktop\GOod Servers\TRRP v1.0\gamemodes\trrp.pwn(55005) : error 017: undefined symbol "GivePlayerWeaponAll"
C:\Users\AztecasGamerzzz\Desktop\GOod Servers\TRRP v1.0\gamemodes\trrp.pwn(55006) : error 017: undefined symbol "GivePlayerWeaponAll"
C:\Users\AztecasGamerzzz\Desktop\GOod Servers\TRRP v1.0\gamemodes\trrp.pwn(55007) : error 017: undefined symbol "GivePlayerWeaponAll"
C:\Users\AztecasGamerzzz\Desktop\GOod Servers\TRRP v1.0\gamemodes\trrp.pwn(55008) : error 017: undefined symbol "GivePlayerWeaponAll"
C:\Users\AztecasGamerzzz\Desktop\GOod Servers\TRRP v1.0\gamemodes\trrp.pwn(55009) : error 017: undefined symbol "GivePlayerWeaponAll"
C:\Users\AztecasGamerzzz\Desktop\GOod Servers\TRRP v1.0\gamemodes\trrp.pwn(55023) : error 017: undefined symbol "GivePlayerWeaponAll"
C:\Users\AztecasGamerzzz\Desktop\GOod Servers\TRRP v1.0\gamemodes\trrp.pwn(55024) : error 017: undefined symbol "GivePlayerWeaponAll"
C:\Users\AztecasGamerzzz\Desktop\GOod Servers\TRRP v1.0\gamemodes\trrp.pwn(55025) : error 017: undefined symbol "GivePlayerWeaponAll"
C:\Users\AztecasGamerzzz\Desktop\GOod Servers\TRRP v1.0\gamemodes\trrp.pwn(55039) : error 017: undefined symbol "GivePlayerWeaponAll"
C:\Users\AztecasGamerzzz\Desktop\GOod Servers\TRRP v1.0\gamemodes\trrp.pwn(55040) : error 017: undefined symbol "GivePlayerWeaponAll"
C:\Users\AztecasGamerzzz\Desktop\GOod Servers\TRRP v1.0\gamemodes\trrp.pwn(55041) : error 017: undefined symbol "GivePlayerWeaponAll"
C:\Users\AztecasGamerzzz\Desktop\GOod Servers\TRRP v1.0\gamemodes\trrp.pwn(55054) : error 017: undefined symbol "GivePlayerWeaponAll"
C:\Users\AztecasGamerzzz\Desktop\GOod Servers\TRRP v1.0\gamemodes\trrp.pwn(55055) : error 017: undefined symbol "GivePlayerWeaponAll"
C:\Users\AztecasGamerzzz\Desktop\GOod Servers\TRRP v1.0\gamemodes\trrp.pwn(55068) : error 017: undefined symbol "GivePlayerWeaponAll"
C:\Users\AztecasGamerzzz\Desktop\GOod Servers\TRRP v1.0\gamemodes\trrp.pwn(55069) : error 017: undefined symbol "GivePlayerWeaponAll"
C:\Users\AztecasGamerzzz\Desktop\GOod Servers\TRRP v1.0\gamemodes\trrp.pwn(55083) : error 017: undefined symbol "GivePlayerWeaponAll"
C:\Users\AztecasGamerzzz\Desktop\GOod Servers\TRRP v1.0\gamemodes\trrp.pwn(55084) : error 017: undefined symbol "GivePlayerWeaponAll"
C:\Users\AztecasGamerzzz\Desktop\GOod Servers\TRRP v1.0\gamemodes\trrp.pwn(55085) : error 017: undefined symbol "GivePlayerWeaponAll"
C:\Users\AztecasGamerzzz\Desktop\GOod Servers\TRRP v1.0\gamemodes\trrp.pwn(55100) : error 017: undefined symbol "GivePlayerWeaponAll"
C:\Users\AztecasGamerzzz\Desktop\GOod Servers\TRRP v1.0\gamemodes\trrp.pwn(55101) : error 017: undefined symbol "GivePlayerWeaponAll"
C:\Users\AztecasGamerzzz\Desktop\GOod Servers\TRRP v1.0\gamemodes\trrp.pwn(55102) : error 017: undefined symbol "GivePlayerWeaponAll"
C:\Users\AztecasGamerzzz\Desktop\GOod Servers\TRRP v1.0\gamemodes\trrp.pwn(55103) : error 017: undefined symbol "GivePlayerWeaponAll"

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


26 Errors.
Line 54912-55172
pawn Code:
if(strcmp(cmd, "/givegun", true) == 0)
    {
        if(IsPlayerConnected(playerid))
        {
            if(PlayerInfo[playerid][pAdmin] < 4)
            {
                SendClientMessage(playerid, COLOR_GRAD1, "   You are not authorized to use that command !");
                return 1;
            }
            tmp = strtok(cmdtext, idx);
            if(!strlen(tmp))
            {
                SendClientMessage(playerid, COLOR_WHITE, "USAGE: /givegun [playerid/PartOfName] [weaponid]");
                return 1;
            }
            new playa;
            new gun;
            playa = ReturnUser(tmp);
            tmp = strtok(cmdtext, idx);
            gun = strvalEx(tmp);
            if(!strlen(tmp))
            {
                SendClientMessage(playerid, COLOR_GREEN,"_______________________________________");
                SendClientMessage(playerid, COLOR_GRAD1, "1: Brass Knuckles 2: Golf Club 3: Nite Stick 4: Knife 5: Baseball Bat 6: Shovel 7: Pool Cue 8: Katana 9: Chainsaw");
                SendClientMessage(playerid, COLOR_GRAD2, "10: Purple Dildo 11: Small White Vibrator 12: Large White Vibrator 13: Silver Vibrator 14: Flowers 15: Cane 16: Frag Grenade");
                SendClientMessage(playerid, COLOR_GRAD3, "17: Tear Gas 18: Molotov Cocktail 19: Vehicle Missile 20: Hydra Flare 21: Jetpack 22: 9mm 23: Silenced 9mm 24: Deagle");
                SendClientMessage(playerid, COLOR_GRAD4, "26: Sawnoff Shotgun 27: Combat Shotgun 28: Micro SMG (Mac 10) 29: SMG (MP5) 30: AK-47 31: M4 32: Tec9 33: Country Rifle");
                SendClientMessage(playerid, COLOR_GRAD5, "25: Shotgun 34: Sniper Rifle 35: Rocket Launcher 36: HS Rocket Launcher 37: Flamethrower 38: Minigun 39: Satchel Charge");
                SendClientMessage(playerid, COLOR_GRAD6, "40: Detonator 41: Spraycan 42: Fire Extinguisher 43: Camera 44: Nightvision Goggles 45: Infared Goggles 46: Parachute");
                SendClientMessage(playerid, COLOR_GREEN,"_______________________________________");
                return 1;
            }
            if(gun < 1||gun > 46) { SendClientMessage(playerid, COLOR_GRAD1, "   Invalid weaponid !"); return 1; }
            if(IsPlayerConnected(playa))
            {
                if(gun == 21)
                {
                    SetPlayerSpecialAction(playa,SPECIAL_ACTION_USEJETPACK);
                }
                else
                {
                    GivePlayerAdminGun(playa, gun);
                }
                GetPlayerName(playa, giveplayer, sizeof(giveplayer));
                format(string, sizeof(string), "   You have given gun %d to %s!", gun,giveplayer);
                SendClientMessage(playerid, COLOR_GREY, string);
            }
        }
        return 1;
    }
    if(strcmp(cmd, "/givegunall", true) == 0)
    {
        if(IsPlayerConnected(playerid))
        {
            if(PlayerInfo[playerid][pAdmin] < 4)
            {
                SendClientMessage(playerid, COLOR_GRAD1, "   You are not authorized to use that command !");
                return 1;
            }
            tmp = strtok(cmdtext, idx);
            if(!strlen(tmp)) {
                SendClientMessage(playerid, COLOR_WHITE, "USAGE: /givegunall [type] [number]");
                SendClientMessage(playerid, COLOR_GRAD1, "1: Meelee");
                SendClientMessage(playerid, COLOR_GRAD1, "2: Pistols");
                SendClientMessage(playerid, COLOR_GRAD2, "3: Shotguns");
                SendClientMessage(playerid, COLOR_GRAD2, "4: Rifles");
                SendClientMessage(playerid, COLOR_GRAD2, "5: Machine Guns");
                SendClientMessage(playerid, COLOR_GRAD3, "6: Assault");
                SendClientMessage(playerid, COLOR_GRAD3, "7: Heavy Assault");
                SendClientMessage(playerid, COLOR_GRAD3, "8: Explosives");
                SendClientMessage(playerid, COLOR_GRAD4, "9: Special");
                return 1;
            }
            new type = strvalEx(tmp);
            if(type == 1)
            {
                tmp = strtok(cmdtext, idx);
                if(!strlen(tmp)) {
                    SendClientMessage(playerid, COLOR_WHITE, "USAGE: /givegunall [type] [number]");
                    SendClientMessage(playerid, COLOR_GRAD1, "1: Golf Club");
                    SendClientMessage(playerid, COLOR_GRAD1, "2: Nite Stick");
                    SendClientMessage(playerid, COLOR_GRAD2, "3: Knife");
                    SendClientMessage(playerid, COLOR_GRAD2, "4: Baseball Bat");
                    SendClientMessage(playerid, COLOR_GRAD3, "5: Shovel");
                    SendClientMessage(playerid, COLOR_GRAD3, "6: Pool Cue");
                    SendClientMessage(playerid, COLOR_GRAD4, "7: Katana");
                    SendClientMessage(playerid, COLOR_GRAD4, "8: Cane");
                    return 1;
                }
                new number = strvalEx(tmp);
                if(number == 1) { GivePlayerWeaponAll(2, 999999); }
                else if(number == 2) { GivePlayerWeaponAll(3, 999999); }
                else if(number == 3) { GivePlayerWeaponAll(4, 999999); }
                else if(number == 4) { GivePlayerWeaponAll(5, 999999); }
                else if(number == 5) { GivePlayerWeaponAll(6, 999999); }
                else if(number == 6) { GivePlayerWeaponAll(7, 999999); }
                else if(number == 7) { GivePlayerWeaponAll(8, 999999); }
                else if(number == 8) { GivePlayerWeaponAll(15, 999999); }
                else { return 0; }
            }
            if(type == 2)
            {
                tmp = strtok(cmdtext, idx);
                if(!strlen(tmp)) {
                    SendClientMessage(playerid, COLOR_WHITE, "USAGE: /givegunall [type] [number]");
                    SendClientMessage(playerid, COLOR_GRAD1, "1: Silenced Pistol");
                    SendClientMessage(playerid, COLOR_GRAD1, "2: Duel Pistols");
                    SendClientMessage(playerid, COLOR_GRAD2, "3: Desert Eagle");
                    return 1;
                }
                new number = strvalEx(tmp);
                if(number == 1) { GivePlayerWeaponAll(23, 999999); }
                else if(number == 2) { GivePlayerWeaponAll(22, 999999); }
                else if(number == 3) { GivePlayerWeaponAll(24, 999999); }
                else { return 0; }
            }
            if(type == 3)
            {
                tmp = strtok(cmdtext, idx);
                if(!strlen(tmp)) {
                    SendClientMessage(playerid, COLOR_WHITE, "USAGE: /givegunall [type] [number]");
                    SendClientMessage(playerid, COLOR_GRAD1, "1: Shotgun");
                    SendClientMessage(playerid, COLOR_GRAD1, "2: SPAS12");
                    SendClientMessage(playerid, COLOR_GRAD2, "3: Sawnoff Shotgun");
                    return 1;
                }
                new number = strvalEx(tmp);
                if(number == 1) { GivePlayerWeaponAll(25, 999999); }
                else if(number == 2) { GivePlayerWeaponAll(27, 999999); }
                else if(number == 3) { GivePlayerWeaponAll(26, 999999); }
                else { return 0; }
            }
            if(type == 4)
            {
                tmp = strtok(cmdtext, idx);
                if(!strlen(tmp)) {
                    SendClientMessage(playerid, COLOR_WHITE, "USAGE: /givegunall [type] [number]");
                    SendClientMessage(playerid, COLOR_GRAD1, "1: Country Rifle");
                    SendClientMessage(playerid, COLOR_GRAD1, "2: Sniper Rifle");
                    return 1;
                }
                new number = strvalEx(tmp);
                if(number == 1) {GivePlayerWeaponAll(33, 999999); }
                else if(number == 2) { GivePlayerWeaponAll(34, 999999); }
                else { return 0; }
            }
            if(type == 5)
            {
                tmp = strtok(cmdtext, idx);
                if(!strlen(tmp)) {
                    SendClientMessage(playerid, COLOR_WHITE, "USAGE: /givegunall [type] [number]");
                    SendClientMessage(playerid, COLOR_GRAD1, "1: Micro SMG");
                    SendClientMessage(playerid, COLOR_GRAD1, "2: Tec9");
                    return 1;
                }
                new number = strvalEx(tmp);
                if(number == 1) { GivePlayerWeaponAll(28, 999999); }
                else if(number == 2) { GivePlayerWeaponAll(32, 999999); }
                else { return 0; }
            }
            if(type == 6)
            {
                tmp = strtok(cmdtext, idx);
                if(!strlen(tmp)) {
                    SendClientMessage(playerid, COLOR_WHITE, "USAGE: /givegunall [type] [number]");
                    SendClientMessage(playerid, COLOR_GRAD1, "1: MP5");
                    SendClientMessage(playerid, COLOR_GRAD1, "2: AK47");
                    SendClientMessage(playerid, COLOR_GRAD2, "3: M4");
                    return 1;
                }
                new number = strvalEx(tmp);
                if(number == 1) { GivePlayerWeaponAll(29, 999999); }
                else if(number == 2) { GivePlayerWeaponAll(30, 999999); }
                else if(number == 3) { GivePlayerWeaponAll(31, 999999); }
                else { return 0; }
            }
            if(type == 7)
            {
                tmp = strtok(cmdtext, idx);
                if(!strlen(tmp)) {
                    SendClientMessage(playerid, COLOR_WHITE, "USAGE: /givegunall [type] [number]");
                    SendClientMessage(playerid, COLOR_GRAD1, "1: Rocket Launcher");
                    SendClientMessage(playerid, COLOR_GRAD1, "2: HS Rocket Launcher");
                    SendClientMessage(playerid, COLOR_GRAD2, "3: Flamethrower");
                    SendClientMessage(playerid, COLOR_GRAD2, "4: Minigun");
                    return 1;
                }
                new number = strvalEx(tmp);
                if(number == 1) { GivePlayerWeaponAll(35, 999999); }
                else if(number == 2) { GivePlayerWeaponAll(36, 999999); }
                else if(number == 3) { GivePlayerWeaponAll(37, 999999); }
                else if(number == 4) { GivePlayerWeaponAll(38, 999999); }
                else { return 0; }
            }
            if(type == 8)
            {
                tmp = strtok(cmdtext, idx);
                if(!strlen(tmp)) {
                    SendClientMessage(playerid, COLOR_WHITE, "USAGE: /givegunall [type] [number]");
                    SendClientMessage(playerid, COLOR_GRAD1, "1: Molotovs");
                    SendClientMessage(playerid, COLOR_GRAD1, "2: Grenades");
                    SendClientMessage(playerid, COLOR_GRAD2, "3: Tear Gas");
                    return 1;
                }
                new number = strvalEx(tmp);
                if(number == 1) { GivePlayerWeaponAll(18, 999999); }
                else if(number == 2) { GivePlayerWeaponAll(16, 999999); }
                else if(number == 3) { GivePlayerWeaponAll(17, 999999); }
                else { return 0; }
            }
            if(type == 9)
            {
                tmp = strtok(cmdtext, idx);
                if(!strlen(tmp)) {
                    SendClientMessage(playerid, COLOR_WHITE, "USAGE: /givegunall [type] [number]");
                    SendClientMessage(playerid, COLOR_GRAD1, "1: Spraycan");
                    SendClientMessage(playerid, COLOR_GRAD2, "2: Fire Extinguisher");
                    SendClientMessage(playerid, COLOR_GRAD2, "3: Nightvision");
                    SendClientMessage(playerid, COLOR_GRAD3, "4: Infrared");
                    SendClientMessage(playerid, COLOR_GRAD3, "5: Flowers");
                    SendClientMessage(playerid, COLOR_GRAD4, "6: Brass Knuckles");
                    SendClientMessage(playerid, COLOR_GRAD4, "7: Parachute");
                    return 1;
                }
                new number = strvalEx(tmp);
                if(number == 1) { GivePlayerWeaponAll(41, 999999); }
                else if(number == 2) { GivePlayerWeaponAll(42, 999999); }
                else if(number == 3) { GivePlayerWeaponAll(44, 999999); }
                else if(number == 4) { GivePlayerWeaponAll(45, 999999); }
                else if(number == 5) { GivePlayerWeaponAll(14, 999999); }
                else if(number == 6) { GivePlayerWeaponAll(1, 999999); }
                else if(number == 7) { GivePlayerWeaponAll(46, 999999); }
                else { return 0; }
            }
            if(type == 10)
            {
                tmp = strtok(cmdtext, idx);
                if(!strlen(tmp)) {
                    SendClientMessage(playerid, COLOR_WHITE, "USAGE: /givegunall [type] [number]");
                    SendClientMessage(playerid, COLOR_GRAD1, "1: Purple Dildo");
                    SendClientMessage(playerid, COLOR_GRAD1, "2: Small White Vibrator");
                    SendClientMessage(playerid, COLOR_GRAD2, "3: Large White Vibrator");
                    SendClientMessage(playerid, COLOR_GRAD2, "4: Silver Vibrator");
                    SendClientMessage(playerid, COLOR_GRAD3, "5: Satchel Charge");
                    SendClientMessage(playerid, COLOR_GRAD3, "6: Detonator");
                    SendClientMessage(playerid, COLOR_GRAD4, "7: Fake Pistol");
                    return 1;
                }
                new number = strvalEx(tmp);
                if(number == 1) { GivePlayerWeaponAll(10, 999999); }
                else if(number == 2) { GivePlayerWeaponAll(11, 999999); }
                else if(number == 3) { GivePlayerWeaponAll(12, 999999); }
                else if(number == 4) { GivePlayerWeaponAll(13, 999999); }
                else if(number == 5) { GivePlayerWeaponAll(39, 999999); }
                else if(number == 6) { GivePlayerWeaponAll(40, 999999); }
                else if(number == 7) { GivePlayerWeaponAll(47, 999999); }
                else { return 0; }
            }
        }
        return 1;
    }
Pleases any help?
Reply


Messages In This Thread
How can i fix this errors? - by $$Money$$ - 02.01.2012, 01:33
Re: How can i fix this errors? - by [HiC]TheKiller - 02.01.2012, 01:36
Re: How can i fix this errors? - by $$Money$$ - 02.01.2012, 01:45
Re: How can i fix this errors? - by Kingunit - 02.01.2012, 01:51
Re: How can i fix this errors? - by $$Money$$ - 02.01.2012, 01:58
Re: How can i fix this errors? - by $$Money$$ - 02.01.2012, 02:16
AW: Re: How can i fix this errors? - by BigETI - 02.01.2012, 02:24
Re: How can i fix this errors? - by $$Money$$ - 02.01.2012, 02:46
Re: How can i fix this errors? - by $$Money$$ - 02.01.2012, 03:20
Re: How can i fix this errors? - by Ballu Miaa - 02.01.2012, 03:25
Re: How can i fix this errors? - by $$Money$$ - 02.01.2012, 05:04
Re: How can i fix this errors? - by [SP]Mr.Kakashi[WP] - 02.01.2012, 05:12
Re: How can i fix this errors? - by $$Money$$ - 02.01.2012, 05:14
Re: How can i fix this errors? - by [SP]Mr.Kakashi[WP] - 02.01.2012, 05:22

Forum Jump:


Users browsing this thread: 1 Guest(s)