Tag mismatch
#1

I don't know what's the problem here.

C:\Users\Nevinn\Desktop\HCRP\gamemodes\HCRPpwn(480 6) : warning 213: tag mismatch
C:\Users\Nevinn\Desktop\HCRP\gamemodes\HCRP.pwn(48 07) : warning 213: tag mismatch
pawn Код:
GetPlayerHealth(playerid,PlayerInfo[playerid][pHealth]);
GetPlayerArmour(playerid,PlayerInfo[playerid][pArmour]);
Reply
#2

PHP код:
new Float:armour;
new 
Float:health
PHP код:
GetPlayerHealth(playeridhealth);
GetPlayerArmour(playeridarmour); 
Reply
#3

the health and armour parameters must be float mate, aoky's example explains it perfectly.
Reply
#4

PHP код:
GetPlayerHealth(playerid,PlayerInfo[playerid][pHealth]);
GetPlayerArmour(playerid,PlayerInfo[playerid][pArmour]); 
pArmour and pHealth should have the Float: tag.

something like this on your script

PHP код:
enum
{
    
Float:pHealth,
    
Float:pArmour

for once, RogerDrifter try to help people in their code not on your code.
Reply
#5

Thanks alot Xeon!
+Rep
Reply
#6

Quote:
Originally Posted by Xeon™
Посмотреть сообщение
PHP код:
GetPlayerHealth(playerid,PlayerInfo[playerid][pHealth]);
GetPlayerArmour(playerid,PlayerInfo[playerid][pArmour]); 
pArmour and pHealth should have the Float: tag.

something like this on your script

PHP код:
enum
{
    
Float:pHealth,
    
Float:pArmour

for once, RogerDrifter try to help people in their code not on your code.
Wait sorry what do u mean? what was wrong about my statement or aoky's?
Reply
#7

Quote:
Originally Posted by RogueDrifter
Посмотреть сообщение
Wait sorry what do u mean? what was wrong about my statement or aoky's?
he is using an enum to organize his code instead of creating a variable for players or a single global one.

so instead of adding another variable to do this. he can simply edit his enum by adding Float: tag to the element missed.
Reply
#8

Quote:
Originally Posted by Xeon™
Посмотреть сообщение
he is using an enum to organize his code instead of creating a variable for players or a single global one.

so instead of adding another variable to do this. he can simply edit his enum by adding Float: tag to the element missed.
Ahh yeah i get what you mean, thanks.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)