[Pomoc] Pljacka banke

Započeo Axwell, Septembar 19, 2011, 20:59:55 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

Skripta koju koristim: FactionGame
Detaljan opis problema: Errori posle ubacivanja nove skripte za pljacku banke
Dio skripte:
          if (strcmp("/robbank", cmdtext, true) == 0)
{
   if(PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pMember] == 2 || PlayerInfo[playerid][pMember] == 3 || PlayerInfo[playerid][pMember] == 4
|| PlayerInfo[playerid][pMember] == 7 || PlayerInfo[playerid][pMember] == 9 || PlayerInfo[playerid][pMember] == 10 || PlayerInfo[playerid][pLeader] == 1
|| PlayerInfo[playerid][pLeader] == 2 || PlayerInfo[playerid][pLeader] == 3 || PlayerInfo[playerid][pLeader] == 4 || PlayerInfo[playerid][pLeader] == 7
|| PlayerInfo[playerid][pLeader] == 9 || PlayerInfo[playerid][pLeader] == 10)
   {
SendClientMessage(playerid, COLOR_GREY, "Niste clan Bande/Mafije !");
  return 1;
}
    if(PlayerToPoint(5, playerid,2315.4900,-0.1248,26.7422))
{
if(timesrobbed[playerid] == 1)
{
   SendClientMessage(playerid, COLOR_YELLOW, "Mozete ponovo pljackati nakon 3 sata !");
}
if(timesrobbed[playerid] == 0)
   {
GetPlayerName(playerid, sendername, sizeof(sendername));
new robmoney = random(6000);

    timesrobbed[playerid]+=3;
format(string,sizeof(string), "* %s vadi alat za obijanje i obija sef.", sendername);
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
  format(string, sizeof(string), "** Opljackali ste banku i uzeli ste $%d!",robmoney);
  SendClientMessage(playerid,COLOR_YELLOW,string);
GivePlayerMoney(playerid, robmoney);
format(string, sizeof(string), "** Banka je opljackana !. **", sendername);
SendRadioMessage(1, TEAM_BLUE_COLOR, string);
SendClientMessage(playerid, COLOR_RED, "Sigurnosne kamere su vas snimile !");
SetPlayerColor(playerid, 0x800000FF)
WantedPoints[playerid]+= 6; SetPlayerCriminal(playerid,255, "Pljacka banke!");
                               SendClientMessageToAll(playerid, TVOJABOJA,"Opljackana je BANKA");

}
else
{
SendClientMessage(playerid, COLOR_GREY, "Mozete ponovo pljackati nakon 3 sata !");
  return 1;
}
}
return 1;
}


Errori:D:\SAMP SERVER\17\FactionGame.pwn(19037) : error 029: invalid expression, assumed zero
D:\ss\FactionGame.pwn(19037) : error 029: invalid expression, assumed zero
D:\ss\FactionGame.pwn(19037) : warning 215: expression has no effect
D:\ss\FactionGame.pwn(19037) : error 001: expected token: ";", but found "]"
D:\ss\FactionGame.pwn(19037) : fatal error 107: too many error messages on one line
Poslednja Izmena: Septembar 19, 2011, 21:01:22 POSLE PODNE od Axwell

zar misliš da će ti netko tražit grešku u ovolikom kodu? ma ne

izdvoji linije sa errorima ^^

Ou,sorry,moja greska,linija 19037 je:
19035     if(PlayerToPoint(5, playerid,2315.4900,-0.1248,26.7422))
19036        {
19037               if(timesrobbed[playerid] == 1)
19038   {
19039    SendClientMessage(playerid, COLOR_YELLOW, "Mozete ponovo pljackati nakon 3 sata !");
19040 }
19041 if(timesrobbed[playerid] == 0)
19042    {
Poslednja Izmena: Septembar 19, 2011, 21:20:13 POSLE PODNE od Axwell

vlado_plavsic


19035      if(PlayerToPoint(5, playerid,2315.4900,-0.1248,26.7422))
19036      {
19037   if(timesrobbed[playerid] == 1)
19038   {
19039     SendClientMessage(playerid, COLOR_YELLOW, "Mozete ponovo pljackati nakon 3 sata !");
19040 }
19041 if(timesrobbed[playerid] == 0)
19042 {


Zameni ono tvoje sa ovim mojim pa mi reci dal ima neski error