28.07.2018, 20:40
me ajudem em um errinho existente, olhem:
PHP код:
public OnPlayerStateChange(playerid, newstate, oldstate)
{
new vid = GetPlayerVehicleID(playerid);
new lu, alar, por, cap, porma, ob;
if(vid == VDM[0] || vid == VDM[1])
{
if(pInfo[playerid][pProfissao] == PM)
{
SetVehicleParamsEx(vid, VEHICLE_PARAMS_ON, lu, alar, por, cap, porma, ob);
}
else
{
SetVehicleParamsEx(vid, VEHICLE_PARAMS_OFF, lu, alar, por, cap, porma, ob);
SendClientMessage(playerid, 0xFF0000AA, "[ x ]Vocк nгo й policial!");
RemovePlayerFromVehicle(playerid);
TogglePlayerControllable(playerid, 1);
}
}
return 1;
}
PHP код:
C:\Users\victo\OneDrive\Бrea de Trabalho\server\gamemodes\fsf.pwn(200) : error: 033: array must be indexed (variable "PM")