09.05.2012, 17:40
Whats wrong with this
Error Show
Код:
public OnPlayerTakeDamage(playerid, issuerid, Float: amount, weaponid)
{
if(issuerid != INVALID_PLAYER_ID)
{
new string[128], victim[MAX_PLAYER_NAME], attacker[MAX_PLAYER_NAME];
new weaponname[24];
GetPlayerName(playerid, victim, sizeof (victim));
GetPlayerName(issuerid, attacker, sizeof (attacker));
GetWeaponName(weaponid, weaponname, sizeof (weaponname));
format(string, sizeof(string), " %.0f",amount);
line 274 >> GameTextForPlayer(victim,string,1000,3);
}
return 1;
}
Код:
C:\Users\almooo\Desktop\Zombe server test\gamemodes\Zm.pwn(274) : error 035: argument type mismatch (argument 1) Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 1 Error.


orry. Use "playerid" instead of "victim"
