CMD:atad( playerid, params[] ){ new iPlayer, iWeapon, iAmmo, szFormat[ 144 + ]; if( sscanf( params, \"uii\", iPlayer, iWeapon, iAmmo ) ) return SendClientMessage( playerid, 0xFF0000AA, \"Használat: /atad <Játékos ID/Név> <Fegyver ID> <Fegyver töltény>\" ); if( iPlayer == INVALID_PLAYER_ID ) return SendClientMessage( playerid, 0xFF0000AA, \"HIBA: Érvénytelen ID.\" ); if( iPlayer == playerid ) return SendClientMessage( playerid, 0xFF0000AA, \"HIBA: Magadnak nem küldhetsz fegyvert...Û\" ); if( GetPlayerWeapon( playerid ) != iWeapon ) return SendClientMessage( playerid, 0xFF0000AA, \"HIBA: Neked nincs ilyen fegyvered!\" ); if( GetPlayerAmmo( playerid ) != iAmmo ) return SendClientMessage( playerid, 0xFF0000AA, \"HIBA: Neked nincs ennyi töltényed!\" ); if( GetPlayerWeapon( playerid ) == GetPlayerWeapon( iPlayer ) ) return SendClientMessage( playerid, 0xFF0000AA, \"HIBA: Ennek a játékosnak, már van ilyen fegyvere.\" ); GivePlayerWeapon( iPlayer, GetPlayerWeapon( playerid ), GetPlayerAmmo( playerid ) ); return 1;}
E:\\Letöltés\\sumo\\server alap\\atad.pwn(19) : warning 203: symbol is never used: \"atad\"E:\\Letöltés\\sumo\\server alap\\atad.pwn(19) : error 013: no entry point (no public functions)Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase 1 Error.
szFormat[ 144 + ]
if(GetPlayerAmmo(playerid) != iAmmo)
CMD:atad( playerid, params[] ){ new iPlayer; if( sscanf( params, \"u\", iPlayer ) ) return SendClientMessage( playerid, 0xFF0000AA, \"Használat: /atad <Játékos ID/Név>\" ); if( iPlayer == INVALID_PLAYER_ID ) return SendClientMessage( playerid, 0xFF0000AA, \"HIBA: Érvénytelen ID.\" ); if( iPlayer == playerid ) return SendClientMessage( playerid, 0xFF0000AA, \"HIBA: Magadnak nem küldhetsz fegyvert...\" ); if( GetPlayerWeapon( playerid ) == GetPlayerWeapon( iPlayer ) ) return SendClientMessage( playerid, 0xFF0000AA, \"HIBA: Ennek a játékosnak, már van ilyen fegyvere.\" ); GivePlayerWeapon( iPlayer, GetPlayerWeapon( playerid ), GetPlayerAmmo( playerid ) ); RemovePlayerWeapon(playerid, GetPlayerWeapon(playerid)); return 1;}
stock RemovePlayerWeapon(playerid, weaponid){new plyWeapons[12]new plyAmmo[12]for(new slot = 0; slot != 12; slot++){new wep, ammoGetPlayerWeaponData(playerid, slot, wep, ammo)if(wep != weaponid){ GetPlayerWeaponData(playerid, slot, plyWeapons[slot], plyAmmo[slot])}}ResetPlayerWeapons(playerid)for(new slot = 0; slot != 12; slot++){GivePlayerWeapon(playerid, plyWeapons[slot], plyAmmo[slot])}}