[Pomoc]Errori

Započeo CodeMan, Jul 08, 2011, 07:36:24 PRE PODNE

prethodna tema - sledeća tema

0 članova i 2 gostiju pregledaju ovu temu.

Skripta koju koristim:Radim DM Mod od 0
Detaljan opis problema:Pa napravio sam dialog da odaberes tim(plavi ili crveni) i ondialogresponse i dobijem errore
Dio skripte:
Dialog:ShowPlayerDialog(playerid,1,DIALOG_STYLE_LIST,"Odaberite Team","Crveni\nPlavi","Odaberi", "");
Errori:C:\Users\Sa-Mp\Desktop\Windows\gamemodes\DM Mode by Cookie.pwn(49) : error 036: empty statement
C:\Users\Sa-Mp\Desktop\Windows\gamemodes\DM Mode by Cookie.pwn(52) : error 029: invalid expression, assumed zero
C:\Users\Sa-Mp\Desktop\Windows\gamemodes\DM Mode by Cookie.pwn(52) : warning 215: expression has no effect
C:\Users\Sa-Mp\Desktop\Windows\gamemodes\DM Mode by Cookie.pwn(52) : error 001: expected token: ";", but found "if"
C:\Users\Sa-Mp\Desktop\Windows\gamemodes\DM Mode by Cookie.pwn(52) : error 036: empty statement
C:\Users\Sa-Mp\Desktop\Windows\gamemodes\DM Mode by Cookie.pwn(52) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase


5 Errors

Linije:SetPlayerCameraPos(playerid, 1958.3783, 1343.1572, 15.3746);
SetPlayerCameraLookAt(playerid, 1958.3783, 1343.1572, 15.3746);
if(PlayerInfo[playerid][pCrveni] == 1);
SetPlayerChatBubble(playerid, "Crveni", COLOR_RED, 100, 99999999);
SetPlayerColor(playerid, COLOR_RED);
else if(PlayerInfo[playerid][pPlavi] == 1);
SetPlayerChatBubble(playerid, "Plavi", COLOR_BLUE, 100, 99999999);
SetPlayerColor(playerid, COLOR_BLUE);

I OnDialogResponse:if(dialogid == 1)
{
    if(response)
    {
if(listitem == 0)
        {
                PlayerInfo[playerid][pCrveni] == 1;
}
else if(listitem == 1)
        {
PlayerInfo[playerid][pPlavi] ==1;
}
}
}

Neke slike/video za lakse dobivanje pomoci(neobavezno):



dragan12

OnDialogResponse ide ovako neide tu else
if(dialogid == 1) 
      { 
          if(response) 
          { 
            if(listitem == 0) 
              { 
                PlayerInfo[playerid][pCrveni] == 1; 
            } 
            if(listitem == 1) 
              { 
            PlayerInfo[playerid][pPlavi] ==1; 
            } 
         } 
      } 

Kakav ti je to dialog? Aj postaj za ono gore koje su linije. I to nije dialog za biranje Crveni ili Plavi

To je taj dialog
Probo sam IG i dalo mi je izbor;Plavi i Crveni
Koje linije??
EDIT:Evo brat mi je rjesio errore
Moze Lokot?!
Poslednja Izmena: Jul 08, 2011, 11:09:01 PRE PODNE od Cookie