02.12.2009, 07:43
Okay that worked
I'm only getting one error now.
I'm not sure how to do this, Can you merge these two OnDialogResponse's together for me please ?

I'm only getting one error now.
Код:
C:\Documents and Settings\Jack\Desktop\samp03asvr_R3_win32\gamemodes\bare.pwn(1757) : error 021: symbol already defined: "OnDialogResponse" Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 1 Error.
Код:
//============================================================================== public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[]) { if(dialogid == DIALOGID) { if(response) { if(listitem == 0) { SendClientMessage(playerid, COLOR_LIGHTBLUE, "* You have picked up a Kevlar Vest from the shelf !"); SetPlayerArmour(playerid, 100); } if(listitem == 1) { SendClientMessage(playerid, COLOR_LIGHTBLUE, "* You have taken a knife from the draw !"); GivePlayerWeapon(playerid, 4, 100000);//Knife } if(listitem == 2) { SendClientMessage(playerid, COLOR_LIGHTBLUE, "* You have taken a Desert Eagle from the shelf !"); GivePlayerWeapon(playerid, 24, 100000);//Deagle } if(listitem == 3) { SendClientMessage(playerid, COLOR_LIGHTBLUE, "* You have have taken an MP5 from the shelf !"); GivePlayerWeapon(playerid, 29, 100000);//mp5 } if(listitem == 4) { SendClientMessage(playerid, COLOR_LIGHTBLUE, "* You have taken an M4 from the shelf !"); GivePlayerWeapon(playerid, 31, 100000);//M4 } if(listitem == 5) { SendClientMessage(playerid, COLOR_LIGHTBLUE, "* You have taken a SPAS 12 from the Gun Locker !"); GivePlayerWeapon(playerid, 27, 100000);//spas12 } if(listitem == 6) { SendClientMessage(playerid, COLOR_LIGHTBLUE, "* You have carefully taken a Sniper Rifle out of the Gun Locker !"); GivePlayerWeapon(playerid, 34, 100000);//Sniper Rifle } if(listitem == 7) { SendClientMessage(playerid, COLOR_LIGHTBLUE, "* You have taken 2 Grenade's from the shelf"); GivePlayerWeapon(playerid, 16, 2);//Naids } if(listitem == 8) { SendClientMessage(playerid, COLOR_LIGHTBLUE, "* You have taken 2 Tear Gas' from the shelf !"); GivePlayerWeapon(playerid, 17, 2);//Tear Gas } } } return true; } //============================================================================== public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[]) { if(dialogid == 1) { if(response) { if(listitem == 0) { SendClientMessage(playerid, COLOR_LIGHTBLUE, "* You have picked up a Kevlar Vest from the shelf !"); SetPlayerArmour(playerid, 100); } if(listitem == 1) { SendClientMessage(playerid, COLOR_LIGHTBLUE, "* You have taken a Knife from the draw !"); GivePlayerWeapon(playerid, 4, 100000);//Knife } if(listitem == 2) { SendClientMessage(playerid, COLOR_LIGHTBLUE, "* You have taken a Colt 45 from the shelf !"); GivePlayerWeapon(playerid, 22, 100000);//Colt 45 } if(listitem == 3) { SendClientMessage(playerid, COLOR_LIGHTBLUE, "* You have taken a Mac-10 from the shelf !"); GivePlayerWeapon(playerid, 28, 100000);// tec 9 } if(listitem == 4) { SendClientMessage(playerid, COLOR_LIGHTBLUE, "* You have picked up an AK47 from the Gun Locker !"); GivePlayerWeapon(playerid, 30, 100000);//AK } if(listitem == 5) { SendClientMessage(playerid, COLOR_LIGHTBLUE, "* You have taken a Shotgun from the Gun Locker !"); GivePlayerWeapon(playerid, 25, 100000);//shotgun } if(listitem == 6) { SendClientMessage(playerid, COLOR_LIGHTBLUE, "* You have taken a SPAS 12 from the Gun Locker !"); GivePlayerWeapon(playerid, 27, 100000);//spas12 } if(listitem == 7) { SendClientMessage(playerid, COLOR_LIGHTBLUE, "* You have taken a Sniper Rifle out of the Gun Locker !"); GivePlayerWeapon(playerid, 34, 100000);//Sniper Rifle } if(listitem == 8) { SendClientMessage(playerid, COLOR_LIGHTBLUE, "* You have taken 2 Molotov Cocktail's from the shelf !"); GivePlayerWeapon(playerid, 18, 2);//Molotov Cocktail } } return 1; } return 0; }