Hallo,
Ich hab ein Problem mit meinem Foodmachiens.
if (newkeys & 16 && GetPlayerState(playerid) == PLAYER_STATE_ONFOOT)
{
//for(new M = 1; M < MAX_MACHINES; M++)
{
new Float:A,Float:H,FoodMachines[128],fmX;
GetPlayerFacingAngle(playerid,A);
{
{
GetPlayerHealth(playerid,H);
ApplyAnimation(playerid,"VENDING","VEND_Use",4.1,0,1,1,1,1);
PlayerPlaySound(playerid,42600,0.0,0.0,0.0);
SetTimerEx("MachineAnimation",2000,0,"d",playerid);
if (H <= 75) SetPlayerHealth(playerid,H+25);
else SetPlayerHealth(playerid,100);
}
else
{
GetPlayerHealth(playerid,H);
ApplyAnimation(playerid,"VENDING","VEND_Use",4.1,0,1,1,1,1);
PlayerPlaySound(playerid,42601,0.0,0.0,0.0);
SetTimerEx("MachineAnimation",2000,0,"d",playerid);
if (H <= 75) SetPlayerHealth(playerid,H+25);
else SetPlayerHealth(playerid,100);
}
}
FoodMachines[M][fmX] += (1 * floatsin(-A, degrees)); // Hier ist mein Problem
FoodMachines[M][fmY] += (1 * floatcos(-A, degrees)); [size=10]// Hier ist mein Problem[/size]
}
}