05.12.2012, 16:23
Ficou assim :
14239
39584
48004
Код:
C:\Users\Casa Rodrigues\Desktop\files_20121204114001\gamemodes\BNL.pwn(14239) : warning 219: local variable "playermoney" shadows a variable at a preceding level C:\Users\Casa Rodrigues\Desktop\files_20121204114001\gamemodes\BNL.pwn(39584) : error 025: function heading differs from prototype C:\Users\Casa Rodrigues\Desktop\files_20121204114001\gamemodes\BNL.pwn(40084) : warning 203: symbol is never used: "gSANZones" Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 1 Error.
Код:
//---------------------------<[ OnPlayerCommandText ]>-------------------------------------------------------- public OnPlayerCommandText(playerid,cmdtext[]) { new string[256]; new playermoney; new sendername[MAX_PLAYER_NAME]; new giveplayer[MAX_PLAYER_NAME]; new playername[MAX_PLAYER_NAME]; new cmd[256]; new tmp[256]; new animid; new giveplayerid,moneys,idx; cmd = strtok(cmdtext,idx);
Код:
public OnPlayerShootPlayer(Shooter,Target,Float,HealthLost,Float,ArmourLost) { new Float:health, Float:armour; GetPlayerHealth(Target,health); GetPlayerArmour(Target,armour); if(ArmourLost > 0.0) SetPlayerArmour(Target,floatadd(armour,ArmourLost)); if(HealthLost > 0.0) SetPlayerHealth(Target,floatadd(health,HealthLost)); new Damage; switch(GetPlayerWeapon(Shooter)) { case 24: Damage = DEAGLEDANO; case 31: Damage = M4DANO; case 28: Damage = SMGDANO; case 29: Damage = MP5DANO; case 0: Damage = SOCODANO; case 22: Damage = NOVEDANO; case 23: Damage = SILENCEDDANO; case 5,3,6,7,2: Damage = 1; case 4: Damage = FACADANO; case 25: Damage = SHOTGUNDANO; case 26: Damage = SAWNDANO; case 30: Damage = AK47DANO; case 33,34: Damage = COUNTRYDANO; } armour = armour - Damage; if(armour < 0.0) { health += armour; if(health <= 0.0) { health = 0.0; } armour = 0.0; } SetPlayerHealth(Target, health); SetPlayerArmour(Target, armour); return 1; } public SafeGivePlayerWeapon(plyid, weaponid, ammo) { GivePlayerWeapon(plyid, weaponid, ammo); return 1; } stock OrgNome(orgid, len) { if(orgid == 1) return format(Nome, len, "Comando Vermelho", 0); if(orgid == 2) return format(Nome, len, "Comando Vila Alianзa", 0); return format(Nome, len, "Nenhum", 0); } stock GetPlayerOrg(playerid) { new org; if(PlayerInfo[playerid][pLider] > 0) { org = PlayerInfo[playerid][pLider]; return org; } if(PlayerInfo[playerid][pMembro] > 0) { org = PlayerInfo[playerid][pMembro]; return org; } return 0; } stock pNome(playerid) { GetPlayerName(playerid, Nome, sizeof(Nome)); return Nome; } stock IsPlayerInZone(playerid, zone[]) { new TmpZone[MAX_ZONE_NAME]; GetPlayer3DZone(playerid, TmpZone, sizeof(TmpZone)); for(new i = 0; i != sizeof(gSAZones); i++) { if(strfind(TmpZone, zone, true) != -1) return 1; } return 1; }