Some Errors
#1

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.
Reply
#2

Quote:

warning 225: unreachable code

Show me the code above your command.
Reply
#3

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

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 .
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)