18.03.2011, 07:28
Im trying to make it so when people die, they respawn at the same location with 100hp but stuck in the animation "FALL_collapse. This is what of tried.
public OnPlayerDeath(playerid)
{
ApplyAnimation(playerid,"FALL_collapse", 4.1, 0, 1, 1, freeze, 0, 1);
Hspawn[playerid] = 1;
return 0;
}
But when i complie i get this error:
C:\samp\sampserver\samp03csvr_win32\gamemodes\myte stserver.pwn(156) : error 035: argument type mismatch (argument 3)
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
1 Error.
public OnPlayerDeath(playerid)
{
ApplyAnimation(playerid,"FALL_collapse", 4.1, 0, 1, 1, freeze, 0, 1);
Hspawn[playerid] = 1;
return 0;
}
But when i complie i get this error:
C:\samp\sampserver\samp03csvr_win32\gamemodes\myte stserver.pwn(156) : error 035: argument type mismatch (argument 3)
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
1 Error.