18.06.2015, 01:03
hola amigos del samp, me puede ayudar con este pequeсo error.
mi funcion:
muchas, gracias.
PHP код:
D:\.pwn(132) : warning 203: symbol is never used: "OnPlayerUpdateEx"
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
1 Warning.
PHP код:
public OnGameModeInit()
{
SetTimer("OnPlayerUpdateEx", 1000, true);
return 1;
}
CallBack: OnPlayerUpdateEx( )
{
for( new playerid, t = GetMaxPlayers(); playerid < t; playerid++ )
{
new str[200], TXT[24] , Float:Healthv , vehicleid = GetPlayerVehicleID(playerid);
new Float:X, Float:Y, Float:Z, Float:Speed;
GetVehicleVelocity(vehicleid, X, Y, Z);
Speed = floatmul(floatsqroot(floatadd(floatadd(floatpower(X, 2), floatpower(Y, 2)), floatpower(Z, 2))), 100.0);
GetVehicleHealth(vehicleid, Healthv);
switch( floatround(Healthv) )
{
case 0 .. 400: TXT = "FORMA2";
case 401 .. 600: TXT = "FORMA2";
case 601 .. 800: TXT = "FORMA4";
}
format(str , sizeof str ,""KA"Modelo: [%s]\n"LA"Vida: [%s"LA"]\n"LI"Velocidad["GL"KMH: %d "LI"/ "PT"MPH: %d"LI"]",CarName[GetVehicleModel( vehicleid ) - 400], TXT, floatround(Speed, floatround_floor), floatround(floatdiv(Speed, 1.609344), floatround_floor));
UpdatePlayer3DTextLabelText(playerid, Veloz[playerid], -1, str);
}
return 1;
}