Sziasztok ez a próblémám hogy nem esik animba a játékos és van egy warningom ! Megkérlek titeket segítettek?
A warning warning 209: function \"OnPlayerUpdate\" should return a value
OnPlayerUpdate rész.
public OnPlayerUpdate(playerid)
{
if(IsPlayerConnected(playerid))
{
FegyverAttachUpdate(playerid);
if(GetPVarInt(GetPlayerTargetPlayer(playerid), \"AdminDuty\")==1)
{
GameTextForPlayer(playerid, \"~r~Admin szolgálatba van~n~ne támadj rá!\", 5000, 3);
}
new vehicleid,Float:speed_x,Float:speed_y,Float:speed_z,Float:final_speed,speed_string[256],final_speed_int;
vehicleid = GetPlayerVehicleID(playerid);
if(vehicleid != 0)
{
GetVehicleVelocity(vehicleid,speed_x,speed_y,speed_z);
final_speed = floatsqroot(((speed_x*speed_x)+(speed_y*speed_y))+(speed_z*speed_z))*131.666667;
final_speed_int = floatround(final_speed,floatround_round);
format(speed_string,256,\"Sebesség: %i KM/H\",final_speed_int);
TextDrawSetString(SebessegMero[playerid], speed_string);
}
else
{
TextDrawSetString(SebessegMero[playerid], \" \");
}
return 1;
}
if(IsPlayerConnected(playerid))
{
new Float:elet;
GetPlayerHealth(playerid, elet);
if(elet <= 50)
{
if(uzi1[playerid] == 0)
{
cmd_me(playerid, \"összeesik\");
TogglePlayerControllable(playerid, false);
SendClientMessage(playerid, PIROS, \"Megsérültél, hívj mentõt! ((/104))\");
ApplyAnimation(playerid,\"SWEET\",\"Sweet_injuredloop\", 4.0, 1, 0, 0, 0, 0);
uzi1[playerid] = 1;
Serult[playerid] = true;
SerultTimer[playerid] = SetTimerEx(\"Felgyogyult\", 3 * 60000, false, \"i\", playerid);
}
}
}
if(Serult[playerid] == true)
{
ApplyAnimation(playerid,\"SWEET\",\"Sweet_injuredloop\", 4.0, 1, 0, 0, 0, 0);
return 1;
}
}
public OnPlayerUpdate(playerid)
{
if(IsPlayerConnected(playerid))
{
FegyverAttachUpdate(playerid);
if(GetPVarInt(GetPlayerTargetPlayer(playerid), \"AdminDuty\")==1)
{
GameTextForPlayer(playerid, \"~r~Admin szolgálatba van~n~ne támadj rá!\", 5000, 3);
}
new vehicleid,Float:speed_x,Float:speed_y,Float:speed_z,Float:final_speed,speed_string[256],final_speed_int;
vehicleid = GetPlayerVehicleID(playerid);
if(vehicleid != 0)
{
GetVehicleVelocity(vehicleid,speed_x,speed_y,speed_z);
final_speed = floatsqroot(((speed_x*speed_x)+(speed_y*speed_y))+(speed_z*speed_z))*131.666667;
final_speed_int = floatround(final_speed,floatround_round);
format(speed_string,256,\"Sebesség: %i KM/H\",final_speed_int);
TextDrawSetString(SebessegMero[playerid], speed_string);
}
else
{
TextDrawSetString(SebessegMero[playerid], \" \");
}
return 1;
}
if(IsPlayerConnected(playerid))
{
new Float:elet;
GetPlayerHealth(playerid, elet);
if(elet <= 50)
{
if(uzi1[playerid] == 0)
{
cmd_me(playerid, \"összeesik\");
TogglePlayerControllable(playerid, false);
SendClientMessage(playerid, PIROS, \"Megsérültél, hívj mentõt! ((/104))\");
ApplyAnimation(playerid,\"SWEET\",\"Sweet_injuredloop\", 4.0, 1, 0, 0, 0, 0);
uzi1[playerid] = 1;
Serult[playerid] = true;
SerultTimer[playerid] = SetTimerEx(\"Felgyogyult\", 3 * 60000, false, \"i\", playerid);
}
}
}
if(Serult[playerid] == true)
{
ApplyAnimation(playerid,\"SWEET\",\"Sweet_injuredloop\", 4.0, 1, 0, 0, 0, 0);
return 1;
}
return 1;
}