13.02.2018, 04:14
So I was messing a little around with pawn trying to make something,
What I'm trying to make is adding current player's health on their name, Let's say I have 56 HP so my name will be 56_ivndosos,
That's the code I tried to make but I got a few errors along the way
This code is on OnPlayerUpdate callback,
The error lines are
What I'm trying to make is adding current player's health on their name, Let's say I have 56 HP so my name will be 56_ivndosos,
That's the code I tried to make but I got a few errors along the way
Код:
new Float:Healthh,str[128], name[MAX_PLAYER_NAME]; GetPlayerName(playerid, name, sizeof(name)); GetPlayerHealth(Healthh); format(str, sizeof(str),"%.0f_%s", Healthh,name); SetPlayerName(playerid, Healthh,name);
Код:
C:\Users\yan\Desktop\LS DM\gamemodes\DBv1.pwn(1649) : warning 213: tag mismatch C:\Users\yan\Desktop\LS DM\gamemodes\DBv1.pwn(1651) : error 035: argument type mismatch (argument 2) Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 1 Error.
Код:
GetPlayerHealth(Healthh); //1649 SetPlayerName(playerid, Healthh,name); // 1651