LIL HELP
#1

Код:
G:\Pawno\gamemodes\codnw.pwn(267) : loose indentation
G:\Pawno\gamemodes\codnw.pwn(484) : error 001: expected token: "-string end-", but found "-identifier-"
G:\Pawno\gamemodes\codnw.pwn(484) : error 017: undefined symbol "Nil"
G:\Pawno\gamemodes\codnw.pwn(484) -- (485) : warning 215: expression has no effect
G:\Pawno\gamemodes\codnw.pwn(485) : error 001: expected token: ";", but found "-identifier-"
G:\Pawno\gamemodes\codnw.pwn(485) : fatal error 107: too many error messages on one line

Compilation aborted.

Pawn compiler 3.2.3664	 	 	Copyright © 1997-2016, ITB CompuPhase


4 Errors.
CODE:

Код:
stock RankBonus(playerid)
{
  if(GetPlayerScore(playerid) >= 0 && GetPlayerScore(playerid) < RANK1)
  {
        SetPlayerHealth(playerid, 50.0);
        SendClientMessage(playerid, COLOR_WHITE,"RANK 0 | Health: 50 | Armour: 0");
line 484        SendClientMessage(playerid, COLOR_WHITE,"Bonuses: "Nil");
        SendClientMessage(playerid, COLOR_GREEN,"------------------------------");
        TextDrawSetString(Rank[playerid],"[]Rank: 0/12");
  }
  else if(GetPlayerScore(playerid) >= RANK1 && GetPlayerScore(playerid) < RANK2)
  {
        SetPlayerHealth(playerid, 53.0);
        SetPlayerArmour(playerid, 3.0);
        SendClientMessage(playerid, COLOR_WHITE,"RANK 1 | Health: 53 | Armour: 3");
        SendClientMessage(playerid, COLOR_WHITE,"Bonuses: "COLOR_RED"+3 HP +3 AR");
        SendClientMessage(playerid, COLOR_GREEN,"------------------------------");
        TextDrawSetString(Rank[playerid],"[]Rank: 1/12");
  }
  else if(GetPlayerScore(playerid) >= RANK2 && GetPlayerScore(playerid) < RANK3)
  {
        SetPlayerHealth(playerid, 60.0);
        SetPlayerArmour(playerid, 10.0);
        SendClientMessage(playerid, COLOR_WHITE,"RANK 2 | Health: 60 | Armour: 10");
        SendClientMessage(playerid, COLOR_WHITE,"Bonuses: "COLOR_RED"+7 HP +7 AR");
        SendClientMessage(playerid, COLOR_GREEN,"------------------------------");
        TextDrawSetString(Rank[playerid],"[]Rank: 2/12");
  }
  else if(GetPlayerScore(playerid) >= RANK3 && GetPlayerScore(playerid) < RANK4)
  {
    SetPlayerHealth(playerid, 63.0);
        SetPlayerArmour(playerid, 10.0);
        GivePlayerWeapon(playerid, 31, 10);
        SendClientMessage(playerid, COLOR_WHITE,"RANK 3 | Health: 63 | Armour: 10");
        SendClientMessage(playerid, COLOR_WHITE,"Bonuses: "COLOR_RED"+3 HP | "cCOLOR_GREEN"M4 (10 ammo) with every class");
        SendClientMessage(playerid, COLOR_GREEN,"------------------------------");
        TextDrawSetString(Rank[playerid],"[]Rank: 3/12");
  }
  else if(GetPlayerScore(playerid) >= RANK4 && GetPlayerScore(playerid) < RANK5)
  {
    SetPlayerHealth(playerid, 66.0);
        SetPlayerArmour(playerid, 15.0);
        GivePlayerWeapon(playerid, 31, 15);
        SendClientMessage(playerid, COLOR_WHITE,"RANK 4 | Health: 66 | Armour: 15");
        SendClientMessage(playerid, COLOR_WHITE,"Bonuses: "COLOR_RED"+3 HP +5 AR| "cCOLOR_GREEN"M4 (15 ammo) with every class");
        SendClientMessage(playerid, COLOR_GREEN,"------------------------------");
        TextDrawSetString(Rank[playerid],"[]Rank: 4/12");
  }
  else if(GetPlayerScore(playerid) >= RANK5 && GetPlayerScore(playerid) < RANK6)
  {
    SetPlayerHealth(playerid, 66.0);
        SetPlayerArmour(playerid, 15.0);
        GivePlayerWeapon(playerid, 27, 10);
        SendClientMessage(playerid, COLOR_WHITE,"RANK 5 | Health: 66 | Armour: 15");
        SendClientMessage(playerid, COLOR_WHITE,"Bonuses: "cCOLOR_GREEN"Spas12 (10 ammo) with every class");
        SendClientMessage(playerid, COLOR_GREEN,"------------------------------");
        TextDrawSetString(Rank[playerid],"[]Rank: 5/12");
  }
  else if(GetPlayerScore(playerid) >= RANK6 && GetPlayerScore(playerid) < RANK7)
  {
    SetPlayerHealth(playerid, 66.0);
        SetPlayerArmour(playerid, 15.0);
        GivePlayerWeapon(playerid, 27, 15);
        SendClientMessage(playerid, COLOR_WHITE,"RANK 6 | Health: 66 | Armour: 15");
        SendClientMessage(playerid, COLOR_WHITE,"Bonuses: "cCOLOR_GREEN"Spas12 (15 ammo) with every class");
        SendClientMessage(playerid, COLOR_GREEN,"------------------------------");
        TextDrawSetString(Rank[playerid],"[]Rank: 6/12");
  }
  else if(GetPlayerScore(playerid) >= RANK7 && GetPlayerScore(playerid) < RANK8)
  {
    SetPlayerHealth(playerid, 66.0);
        SetPlayerArmour(playerid, 15.0);
        GivePlayerWeapon(playerid, 27, 10);
        SendClientMessage(playerid, COLOR_WHITE,"RANK 7 | Health: 66 | Armour: 15");
        SendClientMessage(playerid, COLOR_WHITE,"Bonuses: "COLOR_RED"No Extra bonus | "cCOLOR_GREEN"Old rank bonuses are still there");
        SendClientMessage(playerid, COLOR_GREEN,"------------------------------");
        TextDrawSetString(Rank[playerid],"[]Rank: 7/12");
  }
  else if(GetPlayerScore(playerid) >= RANK8 && GetPlayerScore(playerid) < RANK9)
  {
    SetPlayerHealth(playerid, 66.0);
        SetPlayerArmour(playerid, 15.0);
        GivePlayerWeapon(playerid, 27, 10);
        SendClientMessage(playerid, COLOR_WHITE,"RANK 8 | Health: 66 | Armour: 15");
        SendClientMessage(playerid, COLOR_WHITE,"Bonuses: "COLOR_RED"No Extra bonus | "cCOLOR_GREEN"Old rank bonuses are still there");
        SendClientMessage(playerid, COLOR_GREEN,"------------------------------");
        TextDrawSetString(Rank[playerid],"[]Rank: 8/12");
  }
  else  if(GetPlayerScore(playerid) >= RANK9 && GetPlayerScore(playerid) < RANK10)
  {
    SetPlayerHealth(playerid, 76.0);
        SetPlayerArmour(playerid, 25.0);
        GivePlayerWeapon(playerid, 27, 10);
        SendClientMessage(playerid, COLOR_WHITE,"RANK 9 | Health: 76 | Armour: 25");
        SendClientMessage(playerid, COLOR_WHITE,"Bonuses: "COLOR_RED"+10 HP +10 AR");
        SendClientMessage(playerid, COLOR_GREEN,"------------------------------");
        TextDrawSetString(Rank[playerid],"[]Rank: 9/12");
  }
  else if(GetPlayerScore(playerid) >= RANK10 && GetPlayerScore(playerid) < RANK11)
  {
    SetPlayerHealth(playerid, 86.0);
        SetPlayerArmour(playerid, 35.0);
        GivePlayerWeapon(playerid, 27, 10);
        SendClientMessage(playerid, COLOR_WHITE,"RANK 10 | Health: 78 | Armour: 35");
        SendClientMessage(playerid, COLOR_WHITE,"Bonuses: "COLOR_RED"+10 HP +10 AR");
        SendClientMessage(playerid, COLOR_GREEN,"------------------------------");
        TextDrawSetString(Rank[playerid],"[]Rank: 10/12");
  }
  else if(GetPlayerScore(playerid) >= RANK11 && GetPlayerScore(playerid) < RANK12)
  {
    SetPlayerHealth(playerid, 88.0);
        SetPlayerArmour(playerid, 45.0);
        GivePlayerWeapon(playerid, 27, 10);
        SendClientMessage(playerid, COLOR_WHITE,"RANK 11 | Health: 88 | Armour: 45");
        SendClientMessage(playerid, COLOR_WHITE,"Bonuses: "COLOR_RED"+10 HP +10 AR");
        SendClientMessage(playerid, COLOR_GREEN,"------------------------------");
        TextDrawSetString(Rank[playerid],"[]Rank: 11/12");
  }
  else if(GetPlayerScore(playerid) >= RANK12)
  {
    SetPlayerHealth(playerid, 100.0);
        SetPlayerArmour(playerid, 100.0);
        GivePlayerWeapon(playerid, 27, 50);
        SendClientMessage(playerid, COLOR_WHITE,"RANK 12 | Health: 100 | Armour: 100");
        SendClientMessage(playerid, COLOR_WHITE,"Bonuses: "COLOR_RED"100 HP 100 AR | "cCOLOR_GREEN"Spas12 (50+ ammo) with every class");
        SendClientMessage(playerid, COLOR_GREEN,"------------------------------");
        TextDrawSetString(Rank[playerid],"[]Rank: 12/12");
  }
  return 1;
}
Reply
#2

PHP код:
SendClientMessage(playeridCOLOR_WHITE"Bonuses: Nil"); 
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)