Compile error
#1

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?
Reply
#2

Show us the lines @ 39424 and 39225
Reply
#3

- 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);
/*

Reply
#4

Place your stock above line 39225
Reply
#5

Reply
#6

in line 39225
change modelidd to modelid
Reply
#7

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)
Reply
#8

i Got much Errors. Do you mean to modelid Change to > stock Carsspawn(playerid, modelid) < ??
Reply
#9

There is no change to like Stinged said. You have to remove 'modelidd' from:
PHP код:
new modeliddvehcol1 8vehcol2 15dispz 0;
VehicSpawn(playeridmodelidvehcol1vehcol2dispz); 
{code]warning 208: function with tag result used before definition, forcing reparse[/code]
You need to place your function before use him.
Reply
#10

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.

Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)