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



tag mismach - S0n1COwnsYou - 11.06.2013

Errors:
PHP код:
Current directoryC:\Users\S0n1C\Desktop\My Files\UA-CNR\filterscripts
VehiclesStatus
.pwn(26) : warning 204symbol is assigned a value that is never used"Velocity"
VehiclesStatus.pwn(55) : warning 213tag mismatch
VehiclesStatus
.pwn(55) : warning 213tag mismatch
Pawn compiler 3.2.3664              Copyright 
(c1997-2006ITB CompuPhase
3 Warnings
.
================ 
READY ================ 
My Code:
PHP код:
stock GetVehicleVelocityEx(VehicleID)
{
    new 
Float:V[3];
    new 
Float:Velocity;
    
GetVehicleVelocity(VehicleIDV[0], V[1], V[2]);
    
Velocity floatsqroot(V[0]*V[0] + V[1]*V[1] + V[2]*V[2]);
    return 
float(Velocity 100); // Line 55




Re: tag mismach - Sascha - 11.06.2013

Код:
stock Float:GetVehicleVelocityEx(VehicleID) 
{ 
    new Float:V[3]; 
    new Float:Velocity; 
    GetVehicleVelocity(VehicleID, V[0], V[1], V[2]); 
    Velocity = floatsqroot(V[0]*V[0] + V[1]*V[1] + V[2]*V[2]); 
    return Velocity * 100;
}
could work


Re: tag mismach - S0n1COwnsYou - 11.06.2013

PHP код:
for(new 0MAX_PLAYERSi++)
{
    if(
IsPlayerConnected(i))
    {
        new 
Name[24];
        
GetPlayerName(iName24);
        if(!
strcmp(Name"Sascha"false6)
        {
            
Rep[i]++;
        }
    }