SA-MP Forums Archive
JunkBuster. - 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: JunkBuster. (/showthread.php?tid=322739)



JunkBuster. - Vegas. - 03.03.2012

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);
}



Re: JunkBuster. - mineralo - 03.03.2012

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


Re: JunkBuster. - Vegas. - 03.03.2012

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.



Re: JunkBuster. - Walsh - 03.03.2012

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