03.03.2012, 12:27
I have done everything correct, but when I compile this errors apeears
And these are lines :
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"
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); }