Destroy Vehicle Command help
#1

I need little help here:
Here is the code:

PHP код:
dcmd_dv(playeridparams[])
#pragma unused params
{
    if(
IsPlayerAdmin(playerid) || PlayerInfo[playerid][pAdminLevel] > 0)
    {
        new 
var0 0;
        new 
var1[24];
        new 
var2[256];
        new 
var3[256];
        [
B]var3 function1B8C(arg1var032);[/B]
        if(!
strlen(var3))
        {
            
SendClientMessage(playerid0xFF0000FF"USAGE: /dv (vehicleid)");
            return 
1;
        }
        
var0 strval(var3);
        for(new 
var4 0GetMaxPlayers() > var4var4++)
        {
            if(
IsPlayerInVehicle(var4var0))
            {
                
SendClientMessageToAll(0xFF0000FF"You Can't Destroy A Vehicle With Someone In It.");
                return 
1;
            }
            
GetPlayerName(playeridvar124);
            
format(var2256"%s Destroyed Vehicleid: (%d)."var1var0);
            
DestroyVehicle(var0);
            return 
1;
        }
    }else{
    
SendClientMessage(playeridCOLOR_ERROR"Unknown Command! Type /cmds For Available Commands.");
    }
    return 
1;

I'm getting errors:
PHP код:
D:\...(15724) : error 017undefined symbol "function1B8C" //Check Bold line in code
D:\...(15724) : error 033: array must be indexed (variable "var3"//Check Bold line in code
2 Errors
Looking for solutions, Thanks
Reply


Messages In This Thread
Destroy Vehicle Command help - by DarknesS1988 - 19.09.2017, 12:38
Re: Destroy Vehicle Command help - by CodeStyle175 - 19.09.2017, 12:48
Re: Destroy Vehicle Command help - by DarknesS1988 - 19.09.2017, 12:51

Forum Jump:


Users browsing this thread: 1 Guest(s)