SA-MP Forums Archive
Some Errors - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Some Errors (/showthread.php?tid=383535)



Some Errors - BlueBaron - 07.10.2012

Hello guys , i started scripting my own gamemode , so i can learn more about pawno . But i am stuck on these errors :
Код:
C:\Documents and Settings\Computer\Desktop\SAMP\gamemodes\bwfreeroam.pwn(847) : warning 225: unreachable code
C:\Documents and Settings\Computer\Desktop\SAMP\gamemodes\bwfreeroam.pwn(847) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Computer\Desktop\SAMP\gamemodes\bwfreeroam.pwn(847) : error 017: undefined symbol "cmd_weaponspack"
C:\Documents and Settings\Computer\Desktop\SAMP\gamemodes\bwfreeroam.pwn(847) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Computer\Desktop\SAMP\gamemodes\bwfreeroam.pwn(847) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


4 Errors.
Here is the line that gives me this error :
Код:
COMMAND:weaponspack(playerid, params[])
{
		ShowPlayerDialog(playerid,DIALOG_WEAPSPACK,DIALOG_STYLE_LIST, ""RED""MESSAGE" - "WHITE"Weapons Packs Menu",""GREEN"RW Pack 1 "RED"[UZI/Sawnoff]\n"GREEN"RW Pack 2 "RED"[Tec9/Sawnoff]\n"GREEN"WW Pack 1 "RED"[Deagle/Combat/M4] \n"GREEN"WW Pack 2 "RED"[Deagle/Shotgun/AK47] \n"GREEN"WW Pack 3 "RED"[Deagle/MP5/Sniper] \n"GREEN"WW Pack 4 "RED"[Deagle/Sniper]\n","Select","Exit");
  		return 1;
}
Yes , i have defined DIALOG_WEAPSPACK.


Re: Some Errors - gtakillerIV - 07.10.2012

Quote:

warning 225: unreachable code

Show me the code above your command.


Re: Some Errors - Riddick94 - 07.10.2012

pawn Код:
""RED""MESSAGE"
Check this correctly.


Re: Some Errors - BlueBaron - 07.10.2012

NVM , thanks to you i fixed it . I had problems with the brackets .

Quote:
Originally Posted by Riddick94
Посмотреть сообщение
pawn Код:
""RED""MESSAGE"
Check this correctly.
No problems with it . It was just some brackets .