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 directory: C:\Users\S0n1C\Desktop\My Files\UA-CNR\filterscripts
VehiclesStatus
.pwn(26) : warning 204: symbol is assigned a value that is never used: "Velocity"
VehiclesStatus.pwn(55) : warning 213: tag mismatch
VehiclesStatus
.pwn(55) : warning 213: tag mismatch
Pawn compiler 3.2.3664              Copyright 
(c) 1997-2006, ITB CompuPhase
3 Warnings
.
================ 
READY ================ 
My Code:
PHP код:
stock 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 
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 i = 0; i < MAX_PLAYERS; i++)
{
    if(
IsPlayerConnected(i))
    {
        new 
Name[24];
        
GetPlayerName(i, Name, 24);
        if(!
strcmp(Name, "Sascha", false, 6)
        {
            
Rep[i]++;
        }
    }
}