SA-MP Forums Archive
[HELP] 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: [HELP] Errors (/showthread.php?tid=657929)



[HELP] Errors - ZigGamerx - 18.08.2018

Код:
G:\Pawno\gamemodes\cod.pwn(30) : warning 201: redefinition of constant/macro (symbol "COLOR_GREEN")
G:\Pawno\gamemodes\cod.pwn(394) : loose indentation
G:\Pawno\gamemodes\cod.pwn(396) : loose indentation
G:\Pawno\gamemodes\cod.pwn(746) : warning 211: possibly unintended assignment
G:\Pawno\gamemodes\cod.pwn(748) : error 029: invalid expression, assumed zero
G:\Pawno\gamemodes\cod.pwn(748) : warning 215: expression has no effect
G:\Pawno\gamemodes\cod.pwn(748) : warning 215: expression has no effect
G:\Pawno\gamemodes\cod.pwn(748) : warning 215: expression has no effect
G:\Pawno\gamemodes\cod.pwn(748) : warning 215: expression has no effect
G:\Pawno\gamemodes\cod.pwn(748) : warning 215: expression has no effect
G:\Pawno\gamemodes\cod.pwn(748) : error 001: expected token: ";", but found ")"
G:\Pawno\gamemodes\cod.pwn(748) : error 029: invalid expression, assumed zero
G:\Pawno\gamemodes\cod.pwn(748) : fatal error 107: too many error messages on one line

Compilation aborted.

Pawn compiler 3.2.3664	 	 	Copyright © 1997-2016, ITB CompuPhase


4 Errors.
code:

Код:
public OnPlayerPickUpPickup(playerid, pickupid)
{
	if(pickupid = shop)
	{
	  ShowPlayerDialog(playerid,DIALOG_SHOP,DIALOG_STYLE_LIST,"Shop","Health - $2000\nKevlar Vest - $5000\nUZI - 3000$\nSawed-Off Shotgun - 8000$\nM4 - 1500$","Select","Close");
    }
	return 1;
}



Re: [HELP] Errors - CaptainBoi - 18.08.2018

PHP код:
if(pickupid shop
to
PHP код:
if(pickupid == shop



Re: [HELP] Errors - ZigGamerx - 18.08.2018

Код:
G:\Pawno\gamemodes\cod.pwn(30) : warning 201: redefinition of constant/macro (symbol "COLOR_GREEN")
G:\Pawno\gamemodes\cod.pwn(394) : loose indentation
G:\Pawno\gamemodes\cod.pwn(396) : loose indentation
G:\Pawno\gamemodes\cod.pwn(748) : error 029: invalid expression, assumed zero
G:\Pawno\gamemodes\cod.pwn(748) : warning 215: expression has no effect
G:\Pawno\gamemodes\cod.pwn(748) : warning 215: expression has no effect
G:\Pawno\gamemodes\cod.pwn(748) : warning 215: expression has no effect
G:\Pawno\gamemodes\cod.pwn(748) : warning 215: expression has no effect
G:\Pawno\gamemodes\cod.pwn(748) : warning 215: expression has no effect
G:\Pawno\gamemodes\cod.pwn(748) : error 001: expected token: ";", but found ")"
G:\Pawno\gamemodes\cod.pwn(748) : error 029: invalid expression, assumed zero
G:\Pawno\gamemodes\cod.pwn(748) : fatal error 107: too many error messages on one line

Compilation aborted.

Pawn compiler 3.2.3664	 	 	Copyright © 1997-2016, ITB CompuPhase


4 Errors.
still


Re: [HELP] Errors - CaptainBoi - 18.08.2018

show me line 748


Re: [HELP] Errors - ZigGamerx - 18.08.2018

@CaptainBoi

Код:
	  ShowPlayerDialog(playerid,DIALOG_SHOP,DIALOG_STYLE_LIST,"Shop","Health - $2000\nKevlar Vest - $5000\nUZI - 3000$\nSawed-Off Shotgun - 8000$\nM4 - 1500$","Select","Close");



Re: [HELP] Errors - CaptainBoi - 18.08.2018

that is correct code show me DIALOG_SHOP


Re: [HELP] Errors - ZigGamerx - 18.08.2018

#define DIALOG_SHOP

i didnt created on dialog response yet i just created pickup code


Re: [HELP] Errors - CaptainBoi - 18.08.2018

give it a number
#define DIALOG_SHOP 2001

you have give a number to a dialog if you leave it blank you will get errors
ok


Re: [HELP] Errors - ZigGamerx - 18.08.2018

thank you for help