SA-MP Forums

Go Back   SA-MP Forums > Non-English > Languages > Romānă/Romanian

 
 
Thread Tools Display Modes
Old 01/09/2013, 09:14 AM   #1
ShikamaruSama
Banned
 
Join Date: Sep 2012
Posts: 542
Reputation: 4
Default Mica intrebare ..

Salutare, am luat acest anti weapon hack

http://forum.sa-mp.com/showthread.php?t=319800

Dar am o problema... am facut sa dai arme din giveplayerweapon in safegiveplayerweapon , am facut exact ca acolo si imi dau niste erori ..

Code:
D:\Documents and Settings\Bakuto\Desktop\Server Folosim acm\gamemodes\GM.pwn(40623) : warning 209: function "CustomPickups" should return a value
D:\Documents and Settings\Bakuto\Desktop\Server Folosim acm\gamemodes\GM.pwn(45081) : error 025: function heading differs from prototype
D:\Documents and Settings\Bakuto\Desktop\Server Folosim acm\gamemodes\GM.pwn(45081) : error 021: symbol already defined: "SafeGivePlayerWeapon"
D:\Documents and Settings\Bakuto\Desktop\Server Folosim acm\gamemodes\GM.pwn(45083) : error 010: invalid function or declaration
D:\Documents and Settings\Bakuto\Desktop\Server Folosim acm\gamemodes\GM.pwn(45087) : error 010: invalid function or declaration
D:\Documents and Settings\Bakuto\Desktop\Server Folosim acm\gamemodes\GM.pwn(45090) : error 010: invalid function or declaration
D:\Documents and Settings\Bakuto\Desktop\Server Folosim acm\gamemodes\GM.pwn(45094) : error 010: invalid function or declaration
D:\Documents and Settings\Bakuto\Desktop\Server Folosim acm\gamemodes\GM.pwn(45096) : error 010: invalid function or declaration
D:\Documents and Settings\Bakuto\Desktop\Server Folosim acm\gamemodes\GM.pwn(45100) : error 010: invalid function or declaration
D:\Documents and Settings\Bakuto\Desktop\Server Folosim acm\gamemodes\GM.pwn(45103) : error 010: invalid function or declaration
D:\Documents and Settings\Bakuto\Desktop\Server Folosim acm\gamemodes\GM.pwn(45107) : error 010: invalid function or declaration
D:\Documents and Settings\Bakuto\Desktop\Server Folosim acm\gamemodes\GM.pwn(45109) : error 010: invalid function or declaration
D:\Documents and Settings\Bakuto\Desktop\Server Folosim acm\gamemodes\GM.pwn(45113) : error 010: invalid function or declaration
D:\Documents and Settings\Bakuto\Desktop\Server Folosim acm\gamemodes\GM.pwn(45116) : error 010: invalid function or declaration
D:\Documents and Settings\Bakuto\Desktop\Server Folosim acm\gamemodes\GM.pwn(45120) : error 010: invalid function or declaration
D:\Documents and Settings\Bakuto\Desktop\Server Folosim acm\gamemodes\GM.pwn(45123) : error 010: invalid function or declaration
D:\Documents and Settings\Bakuto\Desktop\Server Folosim acm\gamemodes\GM.pwn(45127) : error 010: invalid function or declaration
D:\Documents and Settings\Bakuto\Desktop\Server Folosim acm\gamemodes\GM.pwn(45129) : error 010: invalid function or declaration
D:\Documents and Settings\Bakuto\Desktop\Server Folosim acm\gamemodes\GM.pwn(45133) : error 010: invalid function or declaration
D:\Documents and Settings\Bakuto\Desktop\Server Folosim acm\gamemodes\GM.pwn(45135) : error 010: invalid function or declaration
D:\Documents and Settings\Bakuto\Desktop\Server Folosim acm\gamemodes\GM.pwn(45137) : warning 203: symbol is never used: "baniinapoi"
Pawn compiler 3.2.3664	 	 	Copyright (c) 1997-2006, ITB CompuPhase


19 Errors.


Code:
CheckWeapons(playerid)
{
    new weaponid = GetPlayerWeapon(playerid);//This will cause the "weaponid not defined" Error

    if(weaponid >= 1 && weaponid <= 15)
    {
        if(weaponid == Weapons[playerid][Melee])
        {
        return 1;
        }
            else
            {
            SendClientMessage(playerid, 0xFF0000FF, "No Hacking!");
            Kick(playerid);
            }
    }

        if( weaponid >= 16 && weaponid <= 18 || weaponid == 39 ) // Checking Thrown
    {
        if(weaponid == Weapons[playerid][Thrown])
        {
        return 1;
        }
            else
            {
            SendClientMessage(playerid, 0xFF0000FF, "No Hacking!");
            Kick(playerid);
            }
    }
    if( weaponid >= 22 && weaponid <= 24 ) // Checking Pistols
    {
        if(weaponid == Weapons[playerid][Pistols])
        {
        return 1;
        }
            else
            {
            SendClientMessage(playerid, 0xFF0000FF, "No Hacking!");
            Kick(playerid);
            }
    }

    if( weaponid >= 25 && weaponid <= 27 ) // Checking Shotguns
    {
        if(weaponid == Weapons[playerid][Shotguns])
        {
        return 1;
        }
            else
            {
            SendClientMessage(playerid, 0xFF0000FF, "No Hacking!");
            Kick(playerid);
            }
    }
    if( weaponid == 28 || weaponid == 29 || weaponid == 32 ) // Checking Sub Machine Guns
    {
        if(weaponid == Weapons[playerid][SubMachine])
        {
        return 1;
        }
            else
            {
            SendClientMessage(playerid, 0xFF0000FF, "No Hacking!");
            Kick(playerid);
            }
    }

    if( weaponid == 30 || weaponid == 31 ) // Checking Assault
    {
        if(weaponid == Weapons[playerid][Assault])
        {
        return 1;
        }
            else
            {
            SendClientMessage(playerid, 0xFF0000FF, "No Hacking!");
            Kick(playerid);
            }
    }

    if( weaponid == 33 || weaponid == 34 ) // Checking Rifles
    {
        if(weaponid == Weapons[playerid][Rifles])
        {
        return 1;
        }
            else
            {
            SendClientMessage(playerid, 0xFF0000FF, "No Hacking!");
            Kick(playerid);
            }
    }
    if( weaponid >= 35 && weaponid <= 38 ) // Checking Heavy
    {
        if(weaponid == Weapons[playerid][Heavy])
        {
        return 1;
        }
            else
            {
            SendClientMessage(playerid, 0xFF0000FF, "No Hacking!");
            Kick(playerid);
            }
    }
    else { return 1; }

return 1;
}

SafeGivePlayerWeapon(playerid, weaponid);
{
if(weaponid >= 1 && weaponid <= 15)
    {
    Weapons[playerid][Melee] = weaponid;
    GivePlayerWeapon(playerid, weaponid, ammo);
    return 1;
    }

        if( weaponid >= 16 && weaponid <= 18 || weaponid == 39 ) // Checking Thrown
    {
    Weapons[playerid][Thrown] = weaponid;
    GivePlayerWeapon(playerid, weaponid, ammo);
    return 1;
    }
    if( weaponid >= 22 && weaponid <= 24 ) // Checking Pistols
    {
    Weapons[playerid][Pistols] = weaponid;
    GivePlayerWeapon(playerid, weaponid, ammo);
    return 1;
    }

    if( weaponid >= 25 && weaponid <= 27 ) // Checking Shotguns
    {
    Weapons[playerid][Shotguns] = weaponid;
    GivePlayerWeapon(playerid, weaponid, ammo);
    return 1;
    }
    if( weaponid == 28 || weaponid == 29 || weaponid == 32 ) // Checking Sub Machine Guns
    {
    Weapons[playerid][SubMachine] = weaponid;
    GivePlayerWeapon(playerid, weaponid, ammo);
    return 1;
    }

    if( weaponid == 30 || weaponid == 31 ) // Checking Assault
    {
    Weapons[playerid][Assault] = weaponid;
    GivePlayerWeapon(playerid, weaponid, ammo);
    return 1;
    }

    if( weaponid == 33 || weaponid == 34 ) // Checking Rifles
    {
    Weapons[playerid][Rifles] = weaponid;
    GivePlayerWeapon(playerid, weaponid, ammo);
    return 1;
    }
    if( weaponid >= 35 && weaponid <= 38 ) // Checking Heavy
    {
    Weapons[playerid][Heavy] = weaponid;
    GivePlayerWeapon(playerid, weaponid, ammo);
    return 1;
    }
return 1;
}

Am facut totul exact ca acolo , doar ca nu am pus sscanf , daca pun sscanf nu se compileaza deloc.,
ShikamaruSama is offline  
Old 01/09/2013, 10:27 AM   #2
WopsS
Huge Clucker
 
WopsS's Avatar
 
Join Date: Nov 2011
Posts: 490
Reputation: 70
Default Re: Mica intrebare ..

D:\Documents and Settings\Bakuto\Desktop\Server Folosim acm\gamemodes\GM.pwn(45081) : error 021: symbol already defined: "SafeGivePlayerWeapon" - Ce-o insemna oare?
WopsS is offline  
Old 02/09/2013, 01:53 PM   #3
ShikamaruSama
Banned
 
Join Date: Sep 2012
Posts: 542
Reputation: 4
Default Re: Mica intrebare ..

Ca este definit ? ?
ShikamaruSama is offline  
Old 02/09/2013, 02:02 PM   #4
WopsS
Huge Clucker
 
WopsS's Avatar
 
Join Date: Nov 2011
Posts: 490
Reputation: 70
Default Re: Mica intrebare ..

Bingo!
WopsS is offline  
 

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



All times are GMT. The time now is 02:42 PM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.