28.06.2011, 12:33
Replace
with
Код:
new s[128]; new pname[24]; GetPlayerName(giveplayerid,pname,24); new armour = strval(tmp); SetPlayerArmour(giveplayerid,armour); if(armour < 0 || armour > 100)return SendClientMessage(playerid,COLOR_ERROR,"Armour Cant Be Less Than 0 And More Than 100"); format(string, sizeof(string), "Server %s Has Set Your Armour To %d",AdminRanks[PlayerAdminLevel[playerid]],armour); SendClientMessage(giveplayerid,0xB22222AA, string); format(s, sizeof(s),"You Have Set %s(%d) Armour To %d", pname,giveplayerid,armour); SendClientMessage(giveplayerid,COLOR_RED,s);
Код:
new s[128]; new pname[24]; GetPlayerName(giveplayerid,pname,24); new armour = strval(tmp); if(armour < 0 || armour > 100) { SendClientMessage(playerid, COLOR_ERROR, "Armour can't be less then 0 or more then 100."); } else { SetPlayerArmour(giveplayerid,armour); format(string, sizeof(string), "Server %s Has Set Your Armour To %d",AdminRanks[PlayerAdminLevel[playerid]],armour); SendClientMessage(giveplayerid,0xB22222AA, string); format(s, sizeof(s),"You Have Set %s(%d) Armour To %d", pname,giveplayerid,armour); SendClientMessage(giveplayerid,COLOR_RED,s); }