Jump to content
  • 0

pomoc Help v pawne


tomi342

Dotaz

Ahojte chcem sa spýtať či by mi vedel niekto pomôcť s týmto 

 

e:\Tomi\samp03z_svr_R1_win32\pawno\include\YSI\y_va/impl.inc(568) : warning 219: local variable "time" shadows a variable at a preceding level
e:\Tomi\samp03z_svr_R1_win32\pawno\include\YSI\y_va/impl.inc(573) : warning 219: local variable "time" shadows a variable at a preceding level
e:\Tomi\samp03z_svr_R1_win32\pawno\include\YSI\y_hooks/impl.inc(2629) : warning 219: local variable "time" shadows a variable at a preceding level
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
 
 
3 Warnings.

 

 

 

Link to comment
Share on other sites

3 odpovědí na tuto otázku

Recommended Posts

  • 0
Chyba číslo 1,2:
public OnPlayerPickUpPickup(playerid, pickupid)
{
new string[256];
DestroyPickup(meatDrops[playerid]);
if(team[playerid] == TEAM_ZOMBIE)
{
if(pInfo[playerid][pZombieClass] == BOOMERZOMBIE) { SetPlayerHealth(playerid,50); }
else { SetPlayerHealth(playerid,100.0); }
}
 
if(team[playerid] == TEAM_HUMAN)
{   (TU JE TA CHYBA ČÍSLO 1)
if(pInfo[playerid][pHumanClass] == ENGINEER || pInfo[playerid][pHumanClass] == ADVANCEDENGINEER || pInfo[playerid][pHumanClass] == VIPENGINEER || pInfo[playerid][pHumanClass] == E_ENGINEER || pInfo[playerid][pHumanClass] == TRAPMASTER)
{
switch(pInfo[playerid][pHumanClass])
{
case ENGINEER: pInfo[playerid][boxes]++,GameTextForPlayer(playerid,"~g~Found~w~: 1 Box",4000,5),DestroyPickup(meatDrops[playerid]);   
(TU JE TA CHYBA ČÍSLO 2)
case ADVANCEDENGINEER: pInfo[playerid][boxesAdvanced] += 2,GameTextForPlayer(playerid,"~g~Found~w~: 2 Boxes",4000,5),DestroyPickup(meatDrops[playerid]);
case VIPENGINEER: pInfo[playerid][pVipBoxes] += 3,GameTextForPlayer(playerid,"~g~Found~w~: 3 Boxes",4000,5),DestroyPickup(meatDrops[playerid]);
case E_ENGINEER: pInfo[playerid][pLadders] += 1,GameTextForPlayer(playerid,"~g~Found~w~: 1 Ladders",4000,5),DestroyPickup(meatDrops[playerid]);
case TRAPMASTER: pInfo[playerid][pTrapMasterTrap] += 1,GameTextForPlayer(playerid,"~g~Found~w~: 1 trap",4000,5),DestroyPickup(meatDrops[playerid]);
}
}
else
{
if(pInfo[playerid][isPlayerInfected] == 0)
{
new slot, weap, ammo;
for ( slot = 0; slot < 14; slot++ )
{
GetPlayerWeaponData(playerid,slot,weap,ammo);
if(IsValidWeapon(weap))
{
new randomselect = random(2);
switch(randomselect)
{
case 0:
{
new randomammo = random(50);
GivePlayerWeapon(playerid,weap,randomammo);
format(string,sizeof(string),"~g~Found~w~: %d ammo",randomammo);
GameTextForPlayer(playerid,string,4000,5);
DestroyPickup(meatDrops[playerid]);
}
case 1:
{
new randomxp = random(35);
format(string,sizeof(string),"~g~Found~w~: %d XP",randomxp);
GameTextForPlayer(playerid,string,4000,5);
pInfo[playerid][pXP] += randomxp;
DestroyPickup(meatDrops[playerid]);
}
}
}
}
}
}
}
 
    return 1;
}

 

 

Chyba číslo 3:

if(PRESSED(KEY_WALK))
{
if(team[playerid] == TEAM_ZOMBIE)
{
   if(pInfo[playerid][pZombieClass] == WITCHZOMBIE)
   {
  new victimid = GetClosestPlayer(playerid);
      if(IsPlayerConnected(victimid))
{
        switch(GetPlayerSkin(victimid))      (TU JE TA CHYBA ČÍSLO 3)
   {
                        case NON_IMMUNE,70:
{
if(GetDistanceBetweenPlayers(playerid,victimid) < 1.5)
{
      if(gettime() - 9 < Abilitys[playerid][WitchAttack]) return GameTextForPlayer(playerid,"~w~ Still recovering",4000,5);
            {
                new Float:hp,zmstring[256];
               GetPlayerHealth(victimid,hp);
SetPlayerHealth(victimid, hp -45);
GameTextForPlayer(victimid,"~n~~n~~n~~n~~y~Witched attacked",3000,5);
GivePlayerXP(playerid,15);
format(zmstring,sizeof(zmstring), ""chat""COL_PINK" %s has been witch attacked by %s",PlayerName(victimid),PlayerName(playerid));
SendClientMessageToAll(-1,zmstring);
Abilitys[playerid][WitchAttack] = gettime();
}
}
}
}
}
}
}
}
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...