22.06.2014, 16:00
Код HTML:
F:\CNR - RP\gamemodes\arcnr2p.pwn(3138) : error 033: array must be indexed (variable "pname")
Код HTML:
public OnVehicleDeath(vehicleid, killerid)
{
for(new i = 0; i < MAX_PLAYERS; i++){
new pname[24];
GetPlayerName(i,pname,sizeof(pname));
if(VehicleInfo[vehicleid][bought] == pname) << this line?
{
SendClientMessage(VehicleInfo[vehicleid][bought],COLOR_ERROR,"The car your purchased from Otto's Cars has been destroyed.");
DestroyVehicle(vehicleid);
}
VehicleInfo[vehicleid][bought] = 999;
VehicleInfo[vehicleid][stolen] =0;
VehicleInfo[vehicleid][bombed] =0;
}
return 1;
}

