[Ajuda] Pq erro SetPlayerChatBubble?
#1

pawn Код:
new cabecastring[128];     
        format(cabecastring, sizeof cabecastring,"%s \n HP: %.1f | AR: %.1f",PlayerName(i), GetPlayerHealth(i) , GetPlayerArmour(i) ); // warning 202: number of arguments does not match definition
        SetPlayerChatBubble(i, cabecastring, COLOR_WHITE, 100.0, 10000);
Reply
#2

pawn Код:
%s \n HP: %.1f | AR: %.1f
Nгo seria %i
Reply
#3

Nгo, esse .1f quer dizer tipo 1.0, nгo 1 e getplayerhealth e getplayerarmour tem que ser chamados como float
E alйm do mais o erro nгo estб aн, jб tentei trocar
Nem no \n, nem no | nгo sei o que й
Reply
#4

Que erro й ?
Reply
#5

// warning 202: number of arguments does not match definition
Em:
format(cabecastring, sizeof cabecastring,"%s \n HP: %.1f | AR: %.1f",PlayerName(i), GetPlayerHealth(i) , GetPlayerArmour(i) );
Reply
#6

pawn Код:
new Float:Heatlh,Float:Armour;
GetPlayerHealth(i,Health);
GetPlayerArmor(i,Armour);
pawn Код:
new cabecastring[70];
format(cabecastring, sizeof cabecastring,"%s \n HP: %.1f | AR: %.1f",PlayerName(i), Health , Armour );
SetPlayerChatBubble(i, cabecastring, COLOR_WHITE, 100.0, 10000);
Vocк errou nos parвmetros do GetPlayerHealth e GetPlayerArmour.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)