26.08.2015, 23:57
C:\Users\Jimmi\Desktop\93.119.25.182-7777\gamemodes\RunStrike.pwn(24934) : error 035: argument type mismatch (argument 3)
C:\Users\Jimmi\Desktop\93.119.25.182-7777\gamemodes\RunStrike.pwn(24936) : error 033: array must be indexed (variable "SpikeInfo")
24934
if(IsPlayerInRangeOfPoint(playerid, 3.0, SpikeInfo[nX], SpikeInfo[nY], SpikeInfo[nZ]))
24936
if(SpikeInfo[sCreated] == 1)
All
C:\Users\Jimmi\Desktop\93.119.25.182-7777\gamemodes\RunStrike.pwn(24936) : error 033: array must be indexed (variable "SpikeInfo")
24934
if(IsPlayerInRangeOfPoint(playerid, 3.0, SpikeInfo[nX], SpikeInfo[nY], SpikeInfo[nZ]))
24936
if(SpikeInfo[sCreated] == 1)
All
Код:
if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER) { for(new i = 0; i < sizeof(SpikeInfo); i++) { if(IsPlayerInRangeOfPoint(playerid, 3.0, SpikeInfo[nX], SpikeInfo[nY], SpikeInfo[nZ])) { if(SpikeInfo[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; } } } }