[Ajuda] Firenitro
#5

Quote:
Originally Posted by shittt
Посмотреть сообщение
pawn Код:
// AQUI VOCE BOTA NO TOPO DO GM

new CarFireObj[MAX_PLAYERS];

#define HOLDING(%0) \
      ((newkeys & (%0)) == (%0))


#define RELEASED(%0) \
      (((newkeys & (%0)) != (%0)) && ((oldkeys & (%0)) == (%0)))
     




// Procure estб public e cole estes codigos
// dentre da mesma ou se nao tiver essa public e so colocar assim mesmo


 public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
 {
     if (HOLDING( 4 ))// if player start use nitro
     {
         if(IsPlayerInAnyVehicle(playerid) && GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
         {
             if(IsValidObject(CarFireObj[playerid]) == 0)//add fire object when player use nitro
             {
                 GameTextForPlayer(playerid, "~r~FireNitro! ", 1000, 1);
                 CarFireObj[playerid] = CreateObject(18694, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0);
                 AttachObjectToVehicle(CarFireObj[playerid], GetPlayerVehicleID(playerid), 0.0, -2.3, 1.2, 180.0, 0.0, 0.0);
             }
         }
     }
     if (RELEASED( 4 ))// if player stop use nitro remove fire object
     {
         if(IsPlayerInAnyVehicle(playerid) && GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
         {
             if(IsValidObject(CarFireObj[playerid]) == 1)DestroyObject(CarFireObj[playerid]);// delete fire object
         }
     }
     return 1;
 }
Mano Deu Esses Erros

Код:
C:\Users\DreikLOL\Desktop\Pasta Edter\TRABALHO\Trabalho\ZNS.pwn(1) : error 017: undefined symbol "MAX_PLAYERS"
C:\Users\DreikLOL\Desktop\Pasta Edter\TRABALHO\Trabalho\ZNS.pwn(9) : error 017: undefined symbol "MAX_PLAYERS"
C:\Users\DreikLOL\Desktop\Pasta Edter\TRABALHO\Trabalho\ZNS.pwn(9) : error 021: symbol already defined: "CarFireObj"
C:\Users\DreikLOL\Desktop\Pasta Edter\TRABALHO\Trabalho\ZNS.pwn(11513) : error 055: start of function body without function header
C:\Users\DreikLOL\Desktop\Pasta Edter\TRABALHO\Trabalho\ZNS.pwn(11514) : error 010: invalid function or declaration
C:\Users\DreikLOL\Desktop\Pasta Edter\TRABALHO\Trabalho\ZNS.pwn(11516) : error 010: invalid function or declaration
C:\Users\DreikLOL\Desktop\Pasta Edter\TRABALHO\Trabalho\ZNS.pwn(11518) : error 010: invalid function or declaration
C:\Users\DreikLOL\Desktop\Pasta Edter\TRABALHO\Trabalho\ZNS.pwn(11526) : error 010: invalid function or declaration
C:\Users\DreikLOL\Desktop\Pasta Edter\TRABALHO\Trabalho\ZNS.pwn(11528) : error 010: invalid function or declaration
C:\Users\DreikLOL\Desktop\Pasta Edter\TRABALHO\Trabalho\ZNS.pwn(11530) : error 010: invalid function or declaration
C:\Users\DreikLOL\Desktop\Pasta Edter\TRABALHO\Trabalho\ZNS.pwn(11533) : error 010: invalid function or declaration
C:\Users\DreikLOL\Desktop\Pasta Edter\TRABALHO\Trabalho\ZNS.pwn(13936) : warning 203: symbol is never used: "CarFireObj"
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


11 Errors.
Reply


Messages In This Thread
Firenitro - by dreiklol - 01.10.2013, 09:28
Re: Firenitro - by n0minal - 01.10.2013, 10:03
Re: Firenitro - by dreiklol - 01.10.2013, 10:13
Re: Firenitro - by shittt - 01.10.2013, 12:25
Re: Firenitro - by dreiklol - 01.10.2013, 13:07
Re: Firenitro - by Wellington1999 - 01.10.2013, 13:32
Re: Firenitro - by dreiklol - 01.10.2013, 15:03
Re: Firenitro - by HatedS - 01.10.2013, 15:23
Re: Firenitro - by dreiklol - 01.10.2013, 15:48
Re: Firenitro - by HatedS - 01.10.2013, 15:58

Forum Jump:


Users browsing this thread: 1 Guest(s)