[HELP]Problem
#1

Hello, I'm building an RolePlay mod, I just finished working on my SpeedCam system..
and this is the problem that pops up :

Quote:

C:\Users\dani\Desktop\Exslucive RolePlay\NEW SRP\gamemodes\ERP.pwn(12949) : warning 208: function with tag result used before definition, forcing reparse
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase

Header size: 9808 bytes
Code size: 1702120 bytes
Data size: 10521844 bytes
Stack/heap size: 16384 bytes; estimated max. usage=5266 cells (21064 bytes)
Total requirements:12250156 bytes

1 Warning.

First of all, i tried to ignore it, when i logged in, NOTHING worked...
Not /login nothing...
So how to solve this ?
This is where it says :

Quote:

stock Float:GetVehicleSpeed(vehicleid,UseMPH = 0)
{
new Float:speed_x,Float:speed_y,Float:speed_z,Float:te mp_speed;
GetVehicleVelocity(vehicleid,speed_x,speed_y,speed _z);
if(UseMPH == 0)
{
temp_speed = floatsqroot(((speed_x*speed_x)+(speed_y*speed_y))+ (speed_z*speed_z))*136.666667;
} else {
temp_speed = floatsqroot(((speed_x*speed_x)+(speed_y*speed_y))+ (speed_z*speed_z))*85.4166672;
}
floatround(temp_speed,floatround_round);return temp_speed;
}

Reply
#2

I don't know if you actually need that specific one, but this one here will work without the warning:

pawn Код:
stock GetVehicleSpeed(vehicleid, &Float:Speed)
{
  new
    Float:X,
    Float:Y,
    Float:Z;

  GetVehicleVelocity(vehicleid, X, Y, Z);
  Speed = floatsqroot(X*X + Y*Y + Z*Z)*200;
}
Also, this:

Код:
Header size: 9808 bytes
Code size: 1702120 bytes
Data size: 10521844 bytes
Stack/heap size: 16384 bytes; estimated max. usage=5266 cells (21064 bytes)
Total requirements:12250156 bytes
Means you haven't optimized the script, so it will lagg like hell, you probably used functions like above ^ and 256 in string size.
Reply
#3

Quote:
Originally Posted by alpha500delta
Посмотреть сообщение
I don't know if you actually need that specific one, but this one here will work without the warning:

pawn Код:
stock GetVehicleSpeed(vehicleid, &Float:Speed)
{
  new
    Float:X,
    Float:Y,
    Float:Z;

  GetVehicleVelocity(vehicleid, X, Y, Z);
  Speed = floatsqroot(X*X + Y*Y + Z*Z)*200;
}
Also, this:

Код:
Header size: 9808 bytes
Code size: 1702120 bytes
Data size: 10521844 bytes
Stack/heap size: 16384 bytes; estimated max. usage=5266 cells (21064 bytes)
Total requirements:12250156 bytes
Means you haven't optimized the script, so it will lagg like hell, you probably used functions like above ^ and 256 in string size.
Now i have this :
Quote:

C:\Users\dani\Desktop\Exslucive RolePlay\NEW SRP\gamemodes\ERP.pwn(2585) : warning 213: tag mismatch
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase

Header size: 9808 bytes
Code size: 1701744 bytes
Data size: 10521844 bytes
Stack/heap size: 16384 bytes; estimated max. usage=5266 cells (21064 bytes)
Total requirements:12249780 bytes

1 Warning.

And how to fix this? :
Quote:

Header size: 9808 bytes
Code size: 1701744 bytes
Data size: 10521844 bytes
Stack/heap size: 16384 bytes; estimated max. usage=5266 cells (21064 bytes)
Total requirements:12249780 bytes

Thanks !
Reply
#4

On wich line is that tag mismatch? (If you still have this question)
Reply
#5

I think you are using Intelexe Roleplay Script, Right?

Just add it to top of your Script

pawn Код:
#pragma dynamic 9999999
Reply
#6

Instead of doing that, go read this topic: https://sampforum.blast.hk/showthread.php?tid=55261
I have it in my bookmarks for occasions like these. #pragma dynamic just shows your laziness.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)