#1

hellow ive got e weid error


Код:
C:\Documents and Settings\Pawel\My Documents\UltimateDMV[SAMP]-1\UltimateDMV[SAMP]\ultimatedmv.pwn(334) : error 001: expected token: ";", but found "if"
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


1 Error.
tahts line 334:

Код:
if(health > oldHP && allowHPchange==false)
and thats from 328 to 340 if you would need it:

Код:
public OnPlayerUpdate(playerid)
{
	if(IsPlayerInVehicle(playerid, examCarPlayer[playerid]) && isInExam[playerid])
	{
		new Float:health;
		GetVehicleHealth(examCarPlayer[playerid], health)
		if(health > oldHP && allowHPchange==false)
		{
			if(timeChanged)
			{
				new h,m,s; 
				gettime(h,m,s); SetPlayerTime(playerid, h, m); timeChanged = false;
			}
plsss help
Reply
#2

pawn Код:
public OnPlayerUpdate(playerid)
{
    if(IsPlayerInVehicle(playerid, examCarPlayer[playerid]) && isInExam[playerid])
    {
        new Float:health;
        GetVehicleHealth(examCarPlayer[playerid], health); // You didn't close this line
        if(health > oldHP && allowHPchange==false)
        {
            if(timeChanged)
            {
                new h,m,s;
                gettime(h,m,s); SetPlayerTime(playerid, h, m); timeChanged = false;
            }
Reply
#3

GetVehicleHealth(examCarPlayer[playerid], health);
Missing a ; on the end.
Reply
#4

Actually if you read error, you will find out the problem
Код:
 error 001: expected token: ";", but found "if"
It clearly says that it expected ';'
Reply
#5

Wow, thank you for that extremely informative update RoXoR...
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)