30.03.2015, 16:25
yea i meant warnings. they shouldn't show... since I didn't edit anything new.
Line: 29116:
Exact line: if(USE_TEXTDRAW_SET == 2)
Line 63683: new type = FactionInfo[PlayerInfo[playerid][pMember]][FactionType];
Line: 104305: if(current == paintjobs_menu)
if(current == exhausts_menu)
Line: 29116:
Код:
if(newstate == PLAYER_STATE_DRIVER || newstate == PLAYER_STATE_PASSENGER) { new vehicleid = GetPlayerVehicleID(playerid), playingid = v_VehicleInfo[vehicleid][RadioPlaying]; if(USE_TEXTDRAW_SET == 2) { format(string,sizeof(string),"Listening to: ~n~~w~%s",r_RadioInfo[playingid][r_Name]); TextDrawSetString(v_VehicleInfo[vehicleid][r_Draw],string); } else { TextDrawSetString(v_VehicleInfo[vehicleid][r_Draw],r_RadioInfo[playingid][r_Name]); } TextDrawShowForPlayer(playerid,v_VehicleInfo[vehicleid][r_Draw]); SetPVarInt(playerid,"ID_HideRadioTextdraw",SetTimerEx("HideRadioTextdraw",TEXTDRAW_DISAPPEAR_TIME,false,"ii",playerid,vehicleid)); PlayAudioStreamForPlayer(playerid,r_RadioInfo[playingid][r_Link]); SetPVarInt(playerid,"ID_OldVehicle",vehicleid); } if(oldstate == PLAYER_STATE_DRIVER || oldstate == PLAYER_STATE_PASSENGER) { new vehicleid = GetPVarInt(playerid,"ID_OldVehicle"), timer = GetPVarInt(playerid,"ID_HideRadioTextdraw"); if(timer != -1) { TextDrawHideForPlayer(playerid,v_VehicleInfo[vehicleid][r_Draw]); KillTimer(timer); } StopAudioStreamForPlayer(playerid); }
Код:
if(strcmp(cmd, "/megaphone", true) == 0 || strcmp(cmd, "/m", true) == 0) { if(IsPlayerConnected(playerid)) { new type = FactionInfo[PlayerInfo[playerid][pMember]][FactionType]; new tmpcar = GetPlayerVehicleID(playerid); GetPlayerName(playerid, sendername, sizeof(sendername)); new length = strlen(cmdtext); while ((idx < length) && (cmdtext[idx] <= ' ')) { idx++; } new offset = idx; new result[64]; while ((idx < length) && ((idx - offset) < (sizeof(result) - 1))) { result[idx - offset] = cmdtext[idx]; idx++; } result[idx - offset] = EOS; if(!strlen(result)) { SendClientMessage(playerid, COLOR_WHITE, "USAGE: (/m)egaphone [megaphone chat]"); return 1; } if(IsACop(playerid) || PlayerInfo[playerid][pMember] == 4 || PlayerInfo[playerid][pLeader] == 4|| IsASoldier(playerid) || IsAnAgent(playerid) || IsAMedic(playerid)) { if(!IsACopCar(tmpcar) && !IsAnAmbulance(tmpcar) && !IsANGCar(tmpcar)) { SendClientMessage(playerid, COLOR_GRAD2, " You are not in a Government vehicle !"); return 1; } else if(IsACop(playerid)) { format(string, sizeof(string), "[Officer %s:o< %s]", sendername, result); ProxDetector(60.0, playerid, string,COLOR_YELLOW,COLOR_YELLOW,COLOR_YELLOW,COLOR_YELLOW,COLOR_YELLOW); } else if(IsAnAgent(playerid)) { format(string, sizeof(string), "[Agent %s:o< %s]", sendername, result); ProxDetector(60.0, playerid, string,COLOR_YELLOW,COLOR_YELLOW,COLOR_YELLOW,COLOR_YELLOW,COLOR_YELLOW); } else if(IsAMedic(playerid)) { format(string, sizeof(string), "[Doctor %s:o< %s]", sendername, result); ProxDetector(60.0, playerid, string,COLOR_YELLOW,COLOR_YELLOW,COLOR_YELLOW,COLOR_YELLOW,COLOR_YELLOW); } else if(IsASoldier(playerid)) { format(string, sizeof(string), "[Soldier %s:o< %s]", sendername, result); ProxDetector(60.0, playerid, string,COLOR_YELLOW,COLOR_YELLOW,COLOR_YELLOW,COLOR_YELLOW,COLOR_YELLOW); } } else { SendClientMessage(playerid, COLOR_GRAD2, " You are not part of a Faction !"); return 1; } } return 1; }
Код:
if(current == paintjobs_menu) { switch(row) { case 0: { if(GetVehicleModel(install_mod_car[playerid]) == 562 || GetVehicleModel(install_mod_car[playerid]) == 565 || GetVehicleModel(install_mod_car[playerid]) == 559 || GetVehicleModel(install_mod_car[playerid]) == 561 || GetVehicleModel(install_mod_car[playerid]) == 560 || GetVehicleModel(install_mod_car[playerid]) == 575 || GetVehicleModel(install_mod_car[playerid]) == 534 || GetVehicleModel(install_mod_car[playerid]) == 567 || GetVehicleModel(install_mod_car[playerid]) == 536 || GetVehicleModel(install_mod_car[playerid]) == 535 || GetVehicleModel(install_mod_car[playerid]) == 576 || GetVehicleModel(install_mod_car[playerid]) == 558 || GetVehicleModel(install_mod_car[playerid]) == 483) { new car = install_mod_car[playerid]; SetVehiclePaintjob(car, 0); PlayerPlaySound(playerid, 1134, 0, 0, 0); ShowMenuForPlayer(paintjobs_menu, playerid); } else { SendClientMessage(playerid, GREY, "This vehicle doesn't support Paintjobs."); ShowMenuForPlayer(tuning_menu, playerid); } }
if(current == exhausts_menu)