car help
#6

Quote:
Originally Posted by youssefehab500
Посмотреть сообщение
you could have searched before u ask anyways i got it from a topic credits goes to Duck4coder
PHP код:
//place at the top of gamemode
enum vData
{
   
bool:Engine
}
new 
Vehicle_Data[MAX_VEHICLES][vData];
//Place in OnGameModeInit
for(new i=0MAX_VEHICLESi++) Vehicle_Data[i][Engine] = true;
//actual command used zcmd to make this :D
CMD:engine(playeridparams[])
{
    
SendClientMessageToAll(WHITE"Command called!");
    new 
VehID GetPlayerVehicleID(playerid),
        
engine,
        
lights,
        
alarm,
        
doors,
        
bonnet,
        
boot,
        
objective;
 
    
GetVehicleParamsEx(VehIDenginelightsalarmdoorsbonnetbootobjective);
    if(!
Vehicle_Data[VehID][Engine])
    {
        
SendClientMessageToAll(WHITE"Command called! -- Engine is 1");
        
SetVehicleParamsEx(VehID1lightsalarmdoorsbonnetbootobjective);
        
SCM(playeridGREEN"Your engine has been turned on.");
        
Vehicle_Data[VehID][Engine] = true;
    }
    else
    {
        
SendClientMessageToAll(WHITE"Command called! -- Engine is 0");
        
SetVehicleParamsEx(VehID0lightsalarmdoorsbonnetbootobjective);
        
SCM(playeridGREEN"Your engine has been turned of.");
        
Vehicle_Data[VehID][Engine] = false;
    }
    return 
1;

and for your /mask command i need your hitman defines and news to make it so show them to us
ERRORS:
Quote:

C:\Documents and Settings\susu\Desktop\horizon\horizon\gamemodes\HR P_9.0.pwn(11) : error 017: undefined symbol "MAX_VEHICLES"
C:\Documents and Settings\susu\Desktop\horizon\horizon\gamemodes\HR P_9.0.pwn(14) : error 010: invalid function or declaration
C:\Documents and Settings\susu\Desktop\horizon\horizon\gamemodes\HR P_9.0.pwn(2461) : warning 219: local variable "engine" shadows a variable at a preceding level
C:\Documents and Settings\susu\Desktop\horizon\horizon\gamemodes\HR P_9.0.pwn(247 : warning 219: local variable "engine" shadows a variable at a preceding level
C:\Documents and Settings\susu\Desktop\horizon\horizon\gamemodes\HR P_9.0.pwn(2495) : warning 219: local variable "engine" shadows a variable at a preceding level
C:\Documents and Settings\susu\Desktop\horizon\horizon\gamemodes\HR P_9.0.pwn(26151) : warning 219: local variable "engine" shadows a variable at a preceding level
C:\Documents and Settings\susu\Desktop\horizon\horizon\gamemodes\HR P_9.0.pwn(26287) : warning 219: local variable "engine" shadows a variable at a preceding level
C:\Documents and Settings\susu\Desktop\horizon\horizon\gamemodes\HR P_9.0.pwn(27001) : warning 217: loose indentation
C:\Documents and Settings\susu\Desktop\horizon\horizon\gamemodes\HR P_9.0.pwn(27003) : warning 217: loose indentation
C:\Documents and Settings\susu\Desktop\horizon\horizon\gamemodes\HR P_9.0.pwn(27360) : warning 219: local variable "engine" shadows a variable at a preceding level
C:\Documents and Settings\susu\Desktop\horizon\horizon\gamemodes\HR P_9.0.pwn(2755 : warning 219: local variable "engine" shadows a variable at a preceding level
C:\Documents and Settings\susu\Desktop\horizon\horizon\gamemodes\HR P_9.0.pwn(46691) : warning 219: local variable "engine" shadows a variable at a preceding level
C:\Documents and Settings\susu\Desktop\horizon\horizon\gamemodes\HR P_9.0.pwn(47137) : warning 219: local variable "engine" shadows a variable at a preceding level
C:\Documents and Settings\susu\Desktop\horizon\horizon\gamemodes\HR P_9.0.pwn(57302) : warning 219: local variable "engine" shadows a variable at a preceding level
C:\Documents and Settings\susu\Desktop\horizon\horizon\gamemodes\HR P_9.0.pwn(60627) : warning 203: symbol is never used: "engine"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


2 Errors.

As you said, I put that script on the top, just under the server's name,
I donno to script its a big problem for me
Reply


Messages In This Thread
car help - by RayDwayne - 04.08.2014, 23:22
Re: car help - by youssefehab500 - 05.08.2014, 00:17
Re: car help - by RayDwayne - 05.08.2014, 00:22
Re: car help - by Pillhead2007 - 05.08.2014, 00:28
Re: car help - by youssefehab500 - 05.08.2014, 00:28
Re: car help - by RayDwayne - 05.08.2014, 00:34
Re: car help - by youssefehab500 - 05.08.2014, 00:37
Re: car help - by RayDwayne - 05.08.2014, 00:39
Re: car help - by Pillhead2007 - 05.08.2014, 00:47
Re: car help - by RayDwayne - 05.08.2014, 00:55

Forum Jump:


Users browsing this thread: 1 Guest(s)