GetPlayerHealth(playerid) needs 2 params???
#1

pawn Код:
stock TeleportPlayer(playerid, Float:x, Float:y, Float:z, Float:angle)
{
    new health = GetPlayerHealth(playerid);
    Streamer_UpdateEx(playerid, x, y, z);
    SetPlayerPos(playerid, x, y, z + 2.5);
    Streamer_UpdateEx(playerid, x, y, z);
    SetPlayerFacingAngle(playerid, angle);
    PlayerPlaySound(playerid, 1085, x, y, z);
    SetPlayerHealth(playerid, health);
    return 1;
}
I get an error that GetPlayerHealth(playerid) dont hav right # of params... WTF?
Reply
#2

sorry to bump, but this is MEGA EXTERMELY SUUUUPER IMPORTANT!!!!
Reply
#3

Check the wiki: https://sampwiki.blast.hk/wiki/GetPlayerHealth
Reply
#4

DAMNIT!
Reply
#5

Quote:
Originally Posted by sciman001
Посмотреть сообщение
DAMNIT!
LOL? You got it fixed?
Reply
#6

replace with this :
Quote:

stock TeleportPlayer(playerid, Float, Float:y, Float:z, Float:angle)
{
new Float: health;
GetPlayerHealth(playerid,health);
Streamer_UpdateEx(playerid, x, y, z);
SetPlayerPos(playerid, x, y, z + 2.5);
Streamer_UpdateEx(playerid, x, y, z);
SetPlayerFacingAngle(playerid, angle);
PlayerPlaySound(playerid, 1085, x, y, z);
SetPlayerHealth(playerid, health);
return 1;
}

Reply
#7

Sorry for asking, but what's the point in checking and setting the health?
Reply
#8

IF I TELEPORT TO A HIGH SPTO, IT WILL NOT LET HIM LOOSEHEALTH. oops... caps. hehe. and yea, i fixed.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)