19.09.2017, 12:38
I need little help here:
Here is the code:
I'm getting errors:
Looking for solutions, Thanks
Here is the code:
PHP код:
dcmd_dv(playerid, params[])
#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(arg1, var0, 32);[/B]
if(!strlen(var3))
{
SendClientMessage(playerid, 0xFF0000FF, "USAGE: /dv (vehicleid)");
return 1;
}
var0 = strval(var3);
for(new var4 = 0; GetMaxPlayers() > var4; var4++)
{
if(IsPlayerInVehicle(var4, var0))
{
SendClientMessageToAll(0xFF0000FF, "You Can't Destroy A Vehicle With Someone In It.");
return 1;
}
GetPlayerName(playerid, var1, 24);
format(var2, 256, "%s Destroyed Vehicleid: (%d).", var1, var0);
DestroyVehicle(var0);
return 1;
}
}else{
SendClientMessage(playerid, COLOR_ERROR, "Unknown Command! Type /cmds For Available Commands.");
}
return 1;
}
PHP код:
D:\...(15724) : error 017: undefined symbol "function1B8C" //Check Bold line in code
D:\...(15724) : error 033: array must be indexed (variable "var3") //Check Bold line in code
2 Errors.