24.03.2013, 14:32
can someone help me fix this
CODE here
This line
Код:
: error 001: expected token: ")", but found "[" : error 029: invalid expression, assumed zero : warning 215: expression has no effect : error 001: expected token: ";", but found "]" : fatal error 107: too many error messages on one line
Код:
if(dialogid == SETSTATION1) { if(response) { new arrayid = listitem; if(IsPlayerInAnyVehicle(playerid)) { foreach(Player, i) if(GetPlayerVehicleID(i) == GetPlayerVehicleID(playerid)) { PlayAudioStreamForPlayer(i, RadioDialogData[arrayid][0]); } } else if(GetPVarType(playerid, "pBoomBox")) { foreach(Player, i) { if(IsPlayerInDynamicArea(i, GetPVarInt(playerid, "pBoomBoxArea"))) { PlayAudioStreamForPlayer(i, RadioDialogData[arrayid][0], GetPVarFloat(playerid, "pBoomBoxX"), GetPVarFloat(playerid, "pBoomBoxY"), GetPVarFloat(playerid, "pBoomBoxZ"), 30.0, 1); } } SetPVarString(playerid, "pBoomBoxStation", RadioDialogData[arrayid][0]); } else { PlayAudioStreamForPlayer(playerid, RadioDialogData[arrayid][0]); SetPVarInt(playerid, "MusicIRadio", 1); } format(string, sizeof(string), "* %s changes the station to %s.",GetPlayerNameEx(playerid), RadioDialogData[arrayid][1]); format(stationidv[GetPlayerVehicleID(playerid)], 64, "%s", RadioDialogData[arrayid][0]); ProxDetector(5.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE); } else { if(stationidv[GetPlayerVehicleID(playerid)][0] != 0) { format(string, sizeof(string), "* %s turns off the radio.",GetPlayerNameEx(playerid)); ProxDetector(5.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE); foreach(Player, i) { if(GetPlayerVehicleID(i) == GetPlayerVehicleID(playerid)){ StopAudioStreamForPlayer(i); stationidv[GetPlayerVehicleID(playerid)][0] = 0; } } if(!IsPlayerInAnyVehicle(playerid)) { if(GetPVarType(playerid, "pBoomBox")) { SendClientMessage(playerid, COLOR_WHITE, "You have turned off the boom box."); foreach(Player, i) if(IsPlayerInDynamicArea(i, GetPVarInt(playerid, "pBoomBoxArea"))) StopAudioStreamForPlayer(i); DeletePVar(playerid, "pBoomBoxStation"); } else { StopAudioStreamForPlayer(playerid); } } } } return 0; }
Код:
if(stationidv[GetPlayerVehicleID(playerid)][0] != 0) {