help !! - 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: help !! (
/showthread.php?tid=579533)
help !! -
Karolukas123 - 27.06.2015
(31676) : error 010: invalid function or declaration
forward CarCheck();
public CarCheck()
{
if(IsVehicleInRangeOfPoint(NuomosMasina[0], 2.0, -1987.7217, 81.2729, 27.2181))
{
if(MasinosNebera == false)
{
MyLabel = Create3DTextLabel("Masinos nera", -1, -1987.7217, 81.2729, 27.2181, 7, 0, 0);
MasinosNebera = true;
}
return;
}
}
if(MasinosNebera == true) // 31676
{
Delete3DTextLabel(MyLabel);
MasinosNebera = false;
}
}
Re: help !! -
Youssef221 - 27.06.2015
Quote:
Originally Posted by Karolukas123
(31676) : error 010: invalid function or declaration
forward CarCheck();
public CarCheck()
{
if(IsVehicleInRangeOfPoint(NuomosMasina[0], 2.0, -1987.7217, 81.2729, 27.2181))
{
if(MasinosNebera == false)
{
MyLabel = Create3DTextLabel("Masinos nera", -1, -1987.7217, 81.2729, 27.2181, 7, 0, 0);
MasinosNebera = true;
}
return;
}
}
if(MasinosNebera == true) // 31676
{
Delete3DTextLabel(MyLabel);
MasinosNebera = false;
}
}
|
Check this:
pawn Код:
forward CarCheck();
public CarCheck()
{
if(IsVehicleInRangeOfPoint(NuomosMasina[0], 2.0, -1987.7217, 81.2729, 27.2181))
{
if(MasinosNebera == false)
{
MyLabel = Create3DTextLabel("Masinos nera", -1, -1987.7217, 81.2729, 27.2181, 7, 0, 0);
MasinosNebera = true;
}
else if(MasinosNebera == true) // 31676
{
Delete3DTextLabel(MyLabel);
MasinosNebera = false;
}
}
}
return 1;
}