Waring

Započeo SrdjanFMG, Avgust 15, 2017, 13:32:59 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

Skripta koju koristim:UnderPoint
Detaljan opis problema: Waring
Dio skripte: [pawn] warning 202: number of arguments does not match definition[/pawn]
Neke slike/video za lakse dobivanje pomoci(neobavezno): [pawn]forward Pljacka(playerid);
public Pljacka(playerid)
{
   if(PljackaVrijeme[playerid] >= 1)
   {
      if(!IsPlayerInRangeOfPoint(playerid, 2.0, 1467.7828, -1012.6957, 1301.0611))
      {
         PljackaVrijeme[playerid] = -1;
         SCM(playerid,-1,""SPLAVA"MG~RPG ~"SIVA"Napustili ste mesto pljacke banke!");
      }
      else
      {
         new string[128];
         PljackaVrijeme[playerid] --;
         format(string, sizeof(string), "~w~Ostani na ~r~mestu ~n~~w~jos ~r~%d ~w~sekundi", PljackaVrijeme[playerid]);
         GameTextForPlayer(playerid, string, 1000, 5);
         SetTimerEx("Pljacka",1000, false, "i", playerid);
      }
   }
   else
   {
      new novac;
      SavePlayer(playerid);
      SCM(playerid,-1,""SPLAVA"MG~RPG ~"SIVA"Cestitamo opljackao si banku!");
      novac = (50000 + random(5000));
      g_NovacPlus(playerid, novac);
      SavePlayer(playerid);
      SetPlayerColor(playerid, COLOR_RED);
               PostaviWanted(playerid, "Pljačka Banke", "LS BANK", 6); //tu je problem na ovoj linij
      SetPlayerAttachedObject( playerid, VRECA_SLOT, 1550, 1, -0.008714, -0.188819, -0.026564, 159.138153, 86.558647, 0.000000, 1.005565, 0.984468, 1.014210 );
   }
}[/pawn]

Provjeri parametre stocka te onda provjeri kako si ti napisao
heroin rap - Moskri u kuci, od sledece lajne glava ce mi puci

Citat: Łukmember=1996][/member] link=topic=113799.msg751842#msg751842 date=1502800331]
Provjeri parametre stocka te onda provjeri kako si ti napisao
mozes mi malo pojasniti nov sam u skriptanju

Posalji stock/public PostaviWanted

Citat: Slade poslato Avgust 15, 2017, 19:12:03 POSLE PODNE
Posalji stock/public PostaviWanted
[pawn]stock PostaviWanted(playerid, zlocin[], prijavio[])
{
   if(IsPlayerConnected(playerid))
   {
      SetPlayerWantedLevel(playerid, GetPlayerWantedLevel(playerid)+1); PlayerInfo[playerid][pTrazeniLevel] += 1;
      if(GetPlayerWantedLevel(playerid) > 6) { SetPlayerWantedLevel(playerid, 6); PlayerInfo[playerid][pTrazeniLevel] = 6; }
      new string[256];
      format(string, sizeof(string), ""ZUTA"- Pocinili ste zlocin: "CRVENA"%s "ZUTA"| Prijava od: "CRVENA"%s!", zlocin, prijavio);
      SCM(playerid, -1, string);
      format(string, sizeof(string), ""ZUTA"- Trenutni Wanted Level: "CRVENA"%d!", GetPlayerWantedLevel(playerid));
      SCM(playerid, -1, string);
      format(string, sizeof(string), ""ZUTA"- Imamo novi prijavljen zlocin od: "CRVENA"%s!", prijavio);
      ChatPD(-1, string);
      format(string, sizeof(string), ""ZUTA"- Pocinio: "CRVENA"%s | Zlocin: "CRVENA"%s | Wanted Level Pocinioca: "CRVENA"%d!", GetName(playerid),zlocin,GetPlayerWantedLevel(playerid));
      ChatPD(-1, string);
      strmid(ZlocinInfo[playerid][zPrijavio], prijavio, 0, strlen(prijavio), 255);
      strmid(ZlocinInfo[playerid][zPocinio], GetName(playerid), 0, strlen(GetName(playerid)), 255);
      strmid(ZlocinInfo[playerid][zZlocin], zlocin, 0, strlen(zlocin), 255);
   }
   return 1;
}[/pawn]


[pawn]PostaviWanted(playerid, "Pljačka Banke", "LS BANK");[/pawn]


Zamijeni ono svoje sa ovim,pa vidi jel ima warninga

[pawn]stock PostaviWanted(playerid, zlocin[], prijavio[], kolicina)
{
   if(IsPlayerConnected(playerid))
   {
      SetPlayerWantedLevel(playerid, GetPlayerWantedLevel(playerid)+kolicina); PlayerInfo[playerid][pTrazeniLevel] += kolicina;
      if(GetPlayerWantedLevel(playerid) > 6) { SetPlayerWantedLevel(playerid, 6); PlayerInfo[playerid][pTrazeniLevel] = 6; }
      new string[256];
      format(string, sizeof(string), ""ZUTA"- Pocinili ste zlocin: "CRVENA"%s "ZUTA"| Prijava od: "CRVENA"%s!", zlocin, prijavio);
      SCM(playerid, -1, string);
      format(string, sizeof(string), ""ZUTA"- Trenutni Wanted Level: "CRVENA"%d!", GetPlayerWantedLevel(playerid));
      SCM(playerid, -1, string);
      format(string, sizeof(string), ""ZUTA"- Imamo novi prijavljen zlocin od: "CRVENA"%s!", prijavio);
      ChatPD(-1, string);
      format(string, sizeof(string), ""ZUTA"- Pocinio: "CRVENA"%s | Zlocin: "CRVENA"%s | Wanted Level Pocinioca: "CRVENA"%d!", GetName(playerid),zlocin,GetPlayerWantedLevel(playerid));
      ChatPD(-1, string);
      strmid(ZlocinInfo[playerid][zPrijavio], prijavio, 0, strlen(prijavio), 255);
      strmid(ZlocinInfo[playerid][zPocinio], GetName(playerid), 0, strlen(GetName(playerid)), 255);
      strmid(ZlocinInfo[playerid][zZlocin], zlocin, 0, strlen(zlocin), 255);
   }
   return 1;
}[/pawn]