Error - 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: Error (
/showthread.php?tid=357102)
Error -
RoXONPL - 06.07.2012
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
Re: Error -
DBan - 06.07.2012
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;
}
Re: Error -
clarencecuzz - 06.07.2012
GetVehicleHealth(examCarPlayer[playerid], health);
Missing a ; on the end.
Re: Error -
[MM]RoXoR[FS] - 06.07.2012
Actually if you read error, you will find out the problem
Код:
error 001: expected token: ";", but found "if"
It clearly says that it expected ';'
Re: Error -
clarencecuzz - 06.07.2012
Wow, thank you for that extremely informative update RoXoR...