Help :D
#1

Код:
	if !Inventory_HasItem(i, "Health Insurance")
		{
			GivePlayerMoney(i, -50);
		}
This error comes up:
Код:
error 001: expected token: "*then", but found "{"
Reply
#2

Quote:
Originally Posted by BluePlayBG
Посмотреть сообщение
Код:
	if !Inventory_HasItem(i, "Health Insurance")
		{
			GivePlayerMoney(i, -50);
		}
This error comes up:
Код:
error 001: expected token: "*then", but found "{"
Код:
	if !Inventory_HasItem(i, "Health Insurance");
		{
			GivePlayerMoney(i, -50);
		}
or
Код:
	if !Inventory_HasItem(i, "Health Insurance"))
		{
			GivePlayerMoney(i, -50);
		}
im not sure if this work,maybe it will
Reply
#3

PHP код:
if(!Inventory_HasItem(i"Health Insurance"))
{
    
GivePlayerMoney(i, -50);

Reply
#4

Quote:
Originally Posted by BluePlayBG
Посмотреть сообщение
Код:
	if !Inventory_HasItem(i, "Health Insurance")
		{
			GivePlayerMoney(i, -50);
		}
This error comes up:
Код:
error 001: expected token: "*then", but found "{"
I marked the things i added red.
You forgot to add a ( after if and you also forgot it to close with ) at the end.

Код:
if(!Inventory_HasItem(i, "Health Insurance"))
		{
			GivePlayerMoney(i, -50);
		}
Reply
#5

Thanks lol, I don't know how I did not add ( lol
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)