JunkBuster.
#1

I have done everything correct, but when I compile this errors apeears

Code:
C:\Documents and Settings\Administrator\Desktop\Ravens Roleplay Fixed\gamemodes\larp.pwn(2782) : error 025: function heading differs from prototype
C:\Documents and Settings\Administrator\Desktop\Ravens Roleplay Fixed\gamemodes\larp.pwn(2783) : error 021: symbol already defined: "JBC_GetPlayerSpeed"
And these are lines :
Code:
stock GetPlayerSpeed(playerid,bool:kmh) // this one 2782
{ // this one 2783
    new Float:Vx,Float:Vy,Float:Vz,Float:rtn;
    if(IsPlayerInAnyVehicle(playerid)) GetVehicleVelocity(GetPlayerVehicleID(playerid),Vx,Vy,Vz); else GetPlayerVelocity(playerid,Vx,Vy,Vz);
    rtn = floatsqroot(floatabs(floatpower(Vx + Vy + Vz,2)));
    return kmh?floatround(rtn * 100 * 1.61):floatround(rtn * 100);
}
Reply
#2

maybe you written forward GetPlayerSpeed(nbak);
just delete that forward or transform stock in public
Reply
#3

This errors pop-up now :-/
Code:
C:\Documents and Settings\Administrator\Desktop\Ravens Roleplay Fixed\pawno\include\JunkBuster.inc(201) : error 059: function argument may not have a default value (variable "get3d")
C:\Documents and Settings\Administrator\Desktop\Ravens Roleplay Fixed\gamemodes\larp.pwn(2783) : warning 235: public function lacks forward declaration (symbol "JBC_GetPlayerSpeed")
C:\Documents and Settings\Administrator\Desktop\Ravens Roleplay Fixed\gamemodes\larp.pwn(2783) : error 025: function heading differs from prototype
C:\Documents and Settings\Administrator\Desktop\Ravens Roleplay Fixed\gamemodes\larp.pwn(2784) : error 021: symbol already defined: "JBC_GetPlayerSpeed"
C:\Documents and Settings\Administrator\Desktop\Ravens Roleplay Fixed\gamemodes\larp.pwn(52063) : warning 217: loose indentation
C:\Documents and Settings\Administrator\Desktop\Ravens Roleplay Fixed\gamemodes\larp.pwn(52109) : warning 217: loose indentation
C:\Documents and Settings\Administrator\Desktop\Ravens Roleplay Fixed\gamemodes\larp.pwn(56995) : warning 217: loose indentation
C:\Documents and Settings\Administrator\Desktop\Ravens Roleplay Fixed\gamemodes\larp.pwn(57030) : warning 217: loose indentation
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


3 Errors.
Reply
#4

Search in your script for "GetPlayerSpeed" judging from your errors, GetPlayerSpeed is defined somewhere in your script.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)