18.06.2011, 02:22
Pleas Help I wana Fix This Error
ERROR IS BELLOW
THE ERROR IS LOCATED WHERE THEYR IS RED
ERROR IS BELLOW
Код:
C:\Users\Family\Desktop\BurnOutCity v2.0\gamemodes\fastfive.pwn(3469) : warning 209: function "OnDialogResponse" should return a value Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 1 Warning.
Код:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[]) { if(!response) return 1; if(dialogid == console) { if(listitem == 0) { SendRconCommand("gmx"); SendClientMessageToAll(COLOR_RED, "Server Is Re-Starting, Please Wait........."); } if(listitem == 1) { ShowPlayerDialog(playerid, dialog_kick,DIALOG_STYLE_INPUT,"Kick","Enter the ID of the person you want to kick.","Kick","Cancel"); } if(listitem == 2) { SendRconCommand("exit"); SendClientMessageToAll(COLOR_RED, "Server Was Shut Down Via The RCON-Console."); } if(listitem == 3) { ShowPlayerDialog(playerid, dialog_ban,DIALOG_STYLE_INPUT,"{FF0000}Ban","Enter the ID of the person you want to ban.","Ban","Cancel"); } if(listitem == 4) { ShowPlayerDialog(playerid, dialog_say,DIALOG_STYLE_INPUT,"{FF0000}Say","Enter the text you want other players\nto see in their chat-box.","Say","Cancel"); } if(listitem == 5) { ShowPlayerDialog(playerid, dialog_announce,DIALOG_STYLE_INPUT,"{FF0000}Announce","Enter the text you want other players\nto see on their screen.","Announce","Cancel"); } if(listitem == 6) { ShowPlayerDialog(playerid, dialog_kill,DIALOG_STYLE_INPUT,"{FF0000}Kill Player","Enter the ID of the person you want to kill.","Kill Player","Cancel"); } } if(dialogid == dialog_kick) { new iReturn = strval(inputtext); if(!response) return 1; if(IsPlayerConnected(iReturn)) { SendClientMessage(iReturn, COLOR_RED, "Kicked by admin on RCON Console"); Kick(iReturn); } } if(dialogid == dialog_ban) { new iReturn1 = strval(inputtext); if(!response) return 1; if(IsPlayerConnected(iReturn1)) { SendClientMessage(iReturn1, COLOR_RED, "Banned by admin on RCON Console"); Ban(iReturn1); } } if(dialogid == dialog_say) { if(!response) return 1; else { SendClientMessageToAll(COLOR_WHITE, inputtext); } } if(dialogid == dialog_announce) { if(!response) return 1; else { GameTextForAll(inputtext, 5000, 3 ); } } if(dialogid == dialog_kill) { new iReturn5 = strval(inputtext); if(!response) return 1; if(IsPlayerConnected(iReturn5)) { SendClientMessage(iReturn5, COLOR_RED, "Killed by admin on RCON Console"); SetPlayerHealth(iReturn5, 0.0); } } if(dialogid == 2) { if(response) { new message[256+1]; if(listitem == 0) { format(message, 256, "Welcome to the Police department!", listitem); SendClientMessage(playerid, 0xFFFFFFFF, message); ResetPlayerWeapons(playerid); GivePlayerWeapon(playerid, 24, 1000); GivePlayerWeapon(playerid, 3, 1); SetPlayerSkin(playerid, 282); SetPlayerPos(playerid, 2238.2217,2449.5750,11.0372); } if(listitem == 1) { format(message, 256, "Welcome to the Taxi company!", listitem); SendClientMessage(playerid, 0xFFFFFFFF, message); ResetPlayerWeapons(playerid); SetPlayerSkin(playerid, 262); SetPlayerPos(playerid, 2191.6074,1676.6697,12.0886); } if(listitem == 2) { format(message, 256, "You are now a Whore!", listitem); SendClientMessage(playerid, 0xFFFFFFFF, message); ResetPlayerWeapons(playerid); GivePlayerWeapon(playerid, 10, 1); SetPlayerSkin(playerid, 85); SetPlayerPos(playerid, 2421.3354,-1224.8848,25.1766); } if(listitem == 3) { format(message, 279, "Welcome to the Fire department!", listitem); SendClientMessage(playerid, 0xFFFFFFFF, message); ResetPlayerWeapons(playerid); GivePlayerWeapon(playerid, 42, 1000); SetPlayerSkin(playerid, 274); SetPlayerPos(playerid, 1775.7734,2064.7734,10.8203); } if(listitem == 4) { format(message, 279, "Welcome to the Medical department!", listitem); SendClientMessage(playerid, 0xFFFFFFFF, message); ResetPlayerWeapons(playerid); SetPlayerSkin(playerid, 274); SetPlayerPos(playerid, 1775.7734,2064.7734,10.8203); } if(listitem == 5) { format(message, 256, "You are now a DrugDealer! Watchout for cops!", listitem); SendClientMessage(playerid, 0xFFFFFFFF, message); ResetPlayerWeapons(playerid); GivePlayerWeapon(playerid, 22, 100); SetPlayerSkin(playerid, 28); SetPlayerPos(playerid, 2168.6028,-1674.3801,15.0841); } if(listitem == 6) { format(message, 256, "You are now a Bus Driver! VROOOM!!", listitem); SendClientMessage(playerid, 0xFFFFFFFF, message); ResetPlayerWeapons(playerid); SetPlayerSkin(playerid, 111); SetPlayerPos(playerid, 2573.1140,1031.8104,10.8203); } if(listitem == 7) { format(message, 256, "You are now a Limo Driver! Go pick some celebreties!!!", listitem); SendClientMessage(playerid, 0xFFFFFFFF, message); ResetPlayerWeapons(playerid); SetPlayerSkin(playerid, 255); SetPlayerPos(playerid, 2025.3408,1917.8259,12.3384); } if(listitem == 8) { format(message, 256, "You are now a Pilot! Fly high!", listitem); SendClientMessage(playerid, 0xFFFFFFFF, message); ResetPlayerWeapons(playerid); SetPlayerSkin(playerid, 61); SetPlayerPos(playerid, -1594.7139,-263.6035,14.1484); } if(listitem == 9) { format(message, 256, "You are now a Hitman! Get those kills!", listitem); SendClientMessage(playerid, 0xFFFFFFFF, message); ResetPlayerWeapons(playerid); GivePlayerWeapon(playerid, 34, 450); SetPlayerSkin(playerid, 164); SetPlayerPos(playerid, 1993.5321,1669.8713,22.7734); } if(listitem == 10) { format(message, 256, "You are now a Garbageman! Clean up the city!", listitem); SendClientMessage(playerid, 0xFFFFFFFF, message); ResetPlayerWeapons(playerid); SetPlayerSkin(playerid, 230); SetPlayerPos(playerid, 2100.7803,-2020.7445,13.5469); } if(listitem == 11) { format(message, 256, "You are now a Forklifter! Deliver the boxes!", listitem); SendClientMessage(playerid, 0xFFFFFFFF, message); ResetPlayerWeapons(playerid); SetPlayerSkin(playerid, 217); SetPlayerPos(playerid, -2147.7646,-212.0997,35.3203); } if(listitem == 12) { format(message, 256, "You are now a Dozer ! Crush those buildings!", listitem); SendClientMessage(playerid, 0xFFFFFFFF, message); ResetPlayerWeapons(playerid); SetPlayerSkin(playerid, 260); SetPlayerPos(playerid, -1902.7339,-1729.0220,21.7500); } if(listitem == 13) { format(message, 256, "You are now a Farmer ! Grow those trees!", listitem); SendClientMessage(playerid, 0xFFFFFFFF, message); ResetPlayerWeapons(playerid); SetPlayerSkin(playerid, 202); SetPlayerPos(playerid, 1057.9154,-306.4989,73.9922); } if(listitem == 14) { format(message, 256, "You are now a Criminal ! Watch out for the cops!", listitem); SendClientMessage(playerid, 0xFFFFFFFF, message); ResetPlayerWeapons(playerid); GivePlayerWeapon(playerid, 26, 100); SetPlayerSkin(playerid, 206); SetPlayerPos(playerid, 2467.3857,-1633.9518,13.5318); } if(listitem == 15) { format(message, 256, "You are now a Hobo ! Get a job loser! :P!", listitem); SendClientMessage(playerid, 0xFFFFFFFF, message); ResetPlayerWeapons(playerid); SetPlayerSkin(playerid, 230); SetPlayerPos(playerid, -1684.6732,583.2836,24.8906); } } } }This Is line 3469