warnings/errors
#1

C:\Users\Desktop\server\filterscripts\rp.pwn(669) : warning 213: tag mismatch
C:\Users\\Desktop\server\filterscripts\rp.pwn(673) : error 029: invalid expression, assumed zero
C:\Users\\Desktop\server\filterscripts\rp.pwn(673) : warning 215: expression has no effect
C:\Users\Desktop\server\filterscripts\rp.pwn(673) : error 001: expected token: ";", but found ")"
C:\Users\Desktop\server\filterscripts\rp.pwn(673) : error 029: invalid expression, assumed zero
C:\Users\Desktop\server\filterscripts\rp.pwn(673) : fatal error 107: too many error messages on one line

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


4 Errors.
help
Reply
#2

We'll need to see line '673' to be able to help you with the problem.
Reply
#3

SetPlayerHealth(playerid, pHealth+20);
Reply
#4

hmm maybe try and include every word
Reply
#5

Did you add
pawn Код:
return 1;
below the line you posted ?
Reply
#6

like this?

Quote:

SetPlayerHealth(playerid, pHealth+10;
}
case 7:
{
if(GetPlayerMoney(playerid) <10) return SendClientMessage(playerid,0xAA3333AA, "You do not have enough money!");
new FloatHealth;
GetPlayerHealth(playerid, FloatHealth);
SendClientMessage(playerid, -1, "You purchased a bottle of Coca-Cola for $10! ((+10 HP))");
GivePlayerMoney(playerid, -10);
SetPlayerHealth(playerid, pHealth+10;
}
case 8:
{
if(GetPlayerMoney(playerid) <15) return SendClientMessage(playerid,0xAA3333AA, "You do not have enough money!");
new FloatHealth;
GetPlayerHealth(playerid, FloatHealth);
SendClientMessage(playerid, -1, "You purchased a Cheese Burger for $15! ((+30 HP))");
ApplyAnimation(playerid,"VENDING", "vend_eat1_P",4.1,0,1,1,1,1,1);
GivePlayerMoney(playerid, -15);
SetPlayerHealth(playerid, pHealth+30;
}
case 9:
{
if(GetPlayerMoney(playerid) <40) return SendClientMessage(playerid,0xAA3333AA, "You do not have enough money!");
SendClientMessage(playerid, -1, "You purchased a box of cigars for $40! ((/cigar))");
GivePlayerMoney(playerid, -40);
(HasBoughtCigar[playerid] = 1);
}
case 11:
{
if(GetPlayerMoney(playerid) <20) return SendClientMessage(playerid,0xAA3333AA, "You do not have enough money!");
SendClientMessage(playerid, -1, "You purchased a bottle of beer for $20!");
GivePlayerMoney(playerid, -20);
(HasBoughtBeer[playerid] = 1);
}
}
}
return 1;
}

already done that
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)