03.01.2012, 17:08
Can somebody help me with this comand ive been working on it too much and
Please help me fix it:i want to putmore radio stations and to change radios using Numpad 4&6 please help me fix the command!
4 Errors.and warns!
Please help me fix it:i want to putmore radio stations and to change radios using Numpad 4&6 please help me fix the command!
Код:
#pragma tabsize 0 #include <a_samp> #define HOLDING(%0) \ ((newkeys & (%0)) == (%0)) #define PRESSED //------------------------------------------------- public OnFilterScriptInit() { return 1; } //------------------------------------------------- public OnPlayerStateChange(playerid, newstate, oldstate) { if (PRESSED(KEY_ACTION)) { if (IsPlayerInAnyVehicle(playerid)) { new vehid = GetPlayerVehicleID(playerid); for(new i = 0; i<MAX_PLAYERS; i++) } else if (RELEASED(KEY_ACTION)) { } return 1; } //------------------------------------------------- public OnPlayerUpdate(playerid) { if(!IsPlayerConnected(playerid)) return 0; if(IsPlayerNPC(playerid)) return 1; // Handle playing SomaFM at the alhambra if(GetPlayerInterior(playerid) == 17) { if(IsPlayerInRangeOfPoint(playerid,70.0,489.5824,-14.7563,1000.6797)) { // alhambra middle if(!GetPVarInt(playerid,"alhambra")) { SetPVarInt(playerid,"alhambra",1); PlayAudioStreamForPlayer(playerid, "http://somafm.com/tags.pls",480.9575,-3.5402,1002.0781,40.0,true); } } } else { if(GetPVarInt(playerid,"alhambra")) { DeletePVar(playerid,"alhambra"); StopAudioStreamForPlayer(playerid); } } return 1; } //-------------------------------------------------
Код:
warning 206: redundant test: constant expression is non-zero error 029: invalid expression, assumed zero warning 215: expression has no effect error 001: expected token: ";", but found "else" warning 217: loose indentation error 029: invalid expression, assumed zero fatal error 107: too many error messages on one line