[HELP] Errors
#1

Код:
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;
}
Reply
#2

PHP код:
if(pickupid shop
to
PHP код:
if(pickupid == shop
Reply
#3

Код:
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
Reply
#4

show me line 748
Reply
#5

@CaptainBoi

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

that is correct code show me DIALOG_SHOP
Reply
#7

#define DIALOG_SHOP

i didnt created on dialog response yet i just created pickup code
Reply
#8

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
Reply
#9

thank you for help
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)