19.11.2012, 16:24
Code:
Error: error 010: invalid function or declaration
Error line:
else
I want to make if player vip, he get +50 hp when he kill someone, if he doesn't vip, he get for kill only 25 HP.
Код:
public OnPlayerDeath(playerid, killerid, reason) { if(DM[playerid] == true) if(PlayerInfo[playerid][pVip] == 1) GetPlayerHealth(killerid,health); SetPlayerHealth(killerid,health + 50.0); SetPlayerScore(killerid, GetPlayerScore(killerid) + 1); } else { GetPlayerHealth(killerid,health); SetPlayerHealth(killerid,health + 25.0); SetPlayerScore(killerid, GetPlayerScore(killerid) + 1); }
Error line:
else
I want to make if player vip, he get +50 hp when he kill someone, if he doesn't vip, he get for kill only 25 HP.