25.06.2018, 23:11
(
Последний раз редактировалось Canema; 25.06.2018 в 23:41.
)
boa noite galera, alguйm me ajuda com esses erros?
ERRO NESTA LINHA: if(IsPlayerInRangeOfPoint(playerid, 3.0, SpikeInfo[i][sX], SpikeInfo[i][sY], SpikeInfo[i][sZ]))
error 028: invalid subscript (not an array or too many subscripts): "SpikeInfo"
warning 215: expression has no effect
error 001: expected token: ";", but found "]"
error 029: invalid expression, assumed zero
fatal error 107: too many error messages on one line
dб todos esses erros
Код:
public OnPlayerUpdate(playerid) { if(!IsPlayerConnected(playerid)) return 0; TempoAFK[playerid] = gettime(); if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER) { for(new i = 0; i < sizeof(SpikeInfo); i++) { if(IsPlayerInRangeOfPoint(playerid, 3.0, SpikeInfo[i][sX], SpikeInfo[i][sY], SpikeInfo[i][sZ])) { if(SpikeInfo[i][sCreated] == 1) { new panels, doors, lights, tires; new carid = GetPlayerVehicleID(playerid); GetVehicleDamageStatus(carid, panels, doors, lights, tires); tires = encode_tires(1, 1, 1, 1); UpdateVehicleDamageStatus(carid, panels, doors, lights, tires); return 0; } } } } return 1; }
error 028: invalid subscript (not an array or too many subscripts): "SpikeInfo"
warning 215: expression has no effect
error 001: expected token: ";", but found "]"
error 029: invalid expression, assumed zero
fatal error 107: too many error messages on one line
dб todos esses erros