20.05.2012, 22:52
Hello,i was coding this /info command for admins and i stucked at this problem.
P.S I used strcat because the single dialog line was too long.
Errors:
(3605) : error 035: argument type mismatch (argument 3)
(3611) : warning 213: tag mismatch
(3612) : warning 213: tag mismatch
Line 3605:
Line 3611:
Line 3612:
This are the floats for armour and health.And the check of the player name:
What's wrong on this?
P.S I used strcat because the single dialog line was too long.
Errors:
(3605) : error 035: argument type mismatch (argument 3)
(3611) : warning 213: tag mismatch
(3612) : warning 213: tag mismatch
Line 3605:
pawn Код:
strcat(info,"Name: %s\n",name);
pawn Код:
strcat(info,"Health: %0.1f\n", gihp);
pawn Код:
strcat(info,"Armour: %0.1f\n", giar);
pawn Код:
new Float:gihp, Float:giar;
new name[MAX_PLAYER_NAME];
GetPlayerName(giveplayerid, name, sizeof(name));
GetPlayerHealth(giveplayerid, gihp);
GetPlayerArmour(giveplayerid, giar);