07.10.2011, 01:19
theres one } too much in the callback:
and now recompile... errors gone?
Код:
public OnPlayerDeath(playerid, killerid, reason){ SendDeathMessage(killerid,playerid,reason); SetPlayerWantedLevel(playerid, 0); SetPlayerWantedLevel(killerid, 6); GivePlayerMoney(killerid, 15000); GivePlayerMoney(playerid, -5000); SetPlayerColor(killerid, 0xD60000FF); SetPlayerColor(playerid, 0xFFFFFFFF); SetPlayerHealth(killerid, 100); SetPlayerArmour(killerid, 100); SetPlayerScore(killerid,GetPlayerScore(killerid)+1); SetPlayerScore(playerid,GetPlayerScore(playerid)-1); return 1; }