[HELP] Dialog Script
#1

I need help with the following script, I keep getting the following error.

Код:
C:\Users\dw_000\Desktop\Scripting SAMP\gamemodes\renscript.pwn(83) : warning 202: number of arguments does not match definition
C:\Users\dw_000\Desktop\Scripting SAMP\gamemodes\renscript.pwn(89) : warning 202: number of arguments does not match definition
C:\Users\dw_000\Desktop\Scripting SAMP\gamemodes\renscript.pwn(95) : warning 202: number of arguments does not match definition
C:\Users\dw_000\Desktop\Scripting SAMP\gamemodes\renscript.pwn(98) : error 002: only a single statement (or expression) can follow each "case"
C:\Users\dw_000\Desktop\Scripting SAMP\gamemodes\renscript.pwn(98) : warning 215: expression has no effect
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


1 Error.
This is the script:

Код:
public OnDialogResponse(playerid,  dialogid, response, listitem, inputtext[])
{
	 if(dialogid==1 && response == 1)
	 {
	 	switch(listitem)
	   {
	     case 0:
		 {
			  GivePlayerWeapon(playerid, 24, 0x7FFFFFFF);
			  GetPlayerMoney(playerid, 6750);
			  return 1;
		 }
		 case 1:
		 {
                          GivePlayerWeapon(playerid, 31, 0x7FFFFFFF);
                          GetPlayerMoney(playerid, 15000);
                          return 1;
		 }
		 case 2:
		 {
			  GivePlayerWeapon(playerid, 27, 0x7FFFFFFF);
			  GetPlayerMoney(playerid, 20000);
			  return 1;
		 }
		 return 1;
	 }
	 return 1;
}
Please help me out on how to fix it.
Reply


Messages In This Thread
[HELP] Dialog Script - by Rose69 - 08.02.2014, 23:11
Re: [HELP] Dialog Script - by Rose69 - 09.02.2014, 00:11
Re: [HELP] Dialog Script - by TheFlyer - 09.02.2014, 00:22
Re: [HELP] Dialog Script - by Don_Cage - 09.02.2014, 00:25
Re: [HELP] Dialog Script - by Crypto20 - 09.02.2014, 01:22

Forum Jump:


Users browsing this thread: 1 Guest(s)