Compile 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: Compile error (
/showthread.php?tid=610953)
Compile error -
Dainteresebuli - 30.06.2016
C:\Users\Admin\Desktop\Drift SAMP MOTD\1466363718_swag-drift\SWAG DRIFT\gamemodes\modhost03.pwn(39424) : warning 208: function with tag result used before definition, forcing reparse
C:\Users\Admin\Desktop\Drift SAMP MOTD\1466363718_swag-drift\SWAG DRIFT\gamemodes\modhost03.pwn(39225) : warning 203: symbol is never used: "modelidd"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
2 Warnings.
Guys Can Some one Help me to fix this?
Re: Compile error -
iSkate - 30.06.2016
Show us the lines @ 39424 and 39225
Re: Compile error -
Dainteresebuli - 30.06.2016
- 39424
Quote:
stock Float:GetVehicleHealthEx2(vehicleid)
{
new Float:health;
GetVehicleHealth(vehicleid, health);
if ( health > 900.0) {
return health / 10.0;
}
else return ( health / 10.0 )-(24);
}
|
- 39225
Quote:
new modelidd, vehcol1 = 8, vehcol2 = 15, dispz = 0;
VehicSpawn(playerid, modelid, vehcol1, vehcol2, dispz);
/*
|
Re: Compile error -
Lynn - 30.06.2016
Place your stock above line 39225
Re: Compile error -
Dainteresebuli - 30.06.2016
Re: Compile error -
Shinja - 30.06.2016
in line 39225
change modelidd to modelid
Re: Compile error -
Stinged - 30.06.2016
Quote:
Originally Posted by Shinja
in line 39225
change modelidd to modelid
|
Actually no, he should just remove 'modelidd', because it's not being used.
'modelid' already exists:
Код:
stock Carsspawn(playerid, modelid)
Re: Compile error -
Dainteresebuli - 30.06.2016
i Got much Errors. Do you mean to modelid Change to > stock Carsspawn(playerid, modelid) < ??
Re: Compile error -
Dayrion - 30.06.2016
There is no change to like Stinged said. You have to remove 'modelidd' from:
PHP код:
new modelidd, vehcol1 = 8, vehcol2 = 15, dispz = 0;
VehicSpawn(playerid, modelid, vehcol1, vehcol2, dispz);
{code]warning 208: function with tag result used before definition, forcing reparse[/code]
You need to place your function before use him.
Re: Compile error -
Dainteresebuli - 30.06.2016
And What can i do now? Can you explain me? i am noob + new
i will +rep you btw
Got This Error Message .
Quote:
C:\Users\Admin\Desktop\Drift SAMP MOTD\1466363718_swag-drift\SWAG DRIFT\gamemodes\modhost03.pwn(39424) : warning 208: function with tag result used before definition, forcing reparse
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
1 Warning.
|