[Pomoc]Dialog

Započeo [BSL]MasteR, Januar 10, 2012, 06:56:37 PRE PODNE

prethodna tema - sledeća tema

0 članova i 3 gostiju pregledaju ovu temu.

Skripta koju koristim:FactionGame Edit
Detaljan opis problema:Napravio sam   komandu /saboracaj da izbaci u dialogu pravila saobracaja ali mi  izbacuje errore
Dio skripte:
evo vam dialog sto sam napravio:
//---------------------------saobracaj pravila------------------------
if(strcmp(cmd, "/saobracaj", true) == 0)
{
  if(IsPlayerConnected(playerid))
    {
      ShowPlayerDialog(playerid,1,DIALOG_STYLE_MSGBOX,"Pravila Saobracaja Balkan Samp-Arena servera||ova pravila se moraju postovati","1.Vozi se  iskljucivo desnom stranom\n2.Obavezno zaustavljanje ispred crveno belih lezecih milicajaca\n3.Bezbedno ulazenje u raskrsnicu\n4.Obavezno parkiranje sam o na parking mestu\n5.Zabranjeno parkiranje na sred ulice\n6.Ogranicenje u centru grada na 60 km/|-\n7.Pravo prvenstva prolaza imaju vozzila koja dolaze sa   desne strane\n8.Zabranjeno hodanje po  sredini ulice\n9.Sudar automobila se  kaznjava oduzimanjem dozvole i jednom i drugom vozacu","OK","OK");
    }
        return 1;
    }

ove errore mi    izbaci:
D:\samp gamemodes\[BSA]Balkan Samp-Arena\pawno\include\Streamer.inc(393) : warning 201: redefinition of constant/macro (symbol "OnPlayerEnterRaceCheckpoint")
D:\samp gamemodes\[BSA]Balkan Samp-Arena\gamemodes\balkan1.pwn(2373) : warning 204: symbol is assigned a value that is never used: "ptime"
D:\samp gamemodes\[BSA]Balkan Samp-Arena\gamemodes\balkan1.pwn(2368) : warning 204: symbol is assigned a value that is never used: "string"
D:\samp gamemodes\[BSA]Balkan Samp-Arena\gamemodes\balkan1.pwn(2697) : warning 235: public function lacks forward declaration (symbol "IsAnInstructor")
D:\samp gamemodes\[BSA]Balkan Samp-Arena\gamemodes\balkan1.pwn(3275) : warning 204: symbol is assigned a value that is never used: "string1"
D:\samp gamemodes\[BSA]Balkan Samp-Arena\gamemodes\balkan1.pwn(3274) : warning 204: symbol is assigned a value that is never used: "pName"
D:\samp gamemodes\[BSA]Balkan Samp-Arena\gamemodes\balkan1.pwn(10473) : warning 204: symbol is assigned a value that is never used: "coordsstring"
D:\samp gamemodes\[BSA]Balkan Samp-Arena\gamemodes\balkan1.pwn(12881) : warning 216: nested comment
D:\samp gamemodes\[BSA]Balkan Samp-Arena\gamemodes\balkan1.pwn(15125) : warning 202: number of arguments does not match definition
D:\samp gamemodes\[BSA]Balkan Samp-Arena\gamemodes\balkan1.pwn(15129) : warning 202: number of arguments does not match definition
D:\samp gamemodes\[BSA]Balkan Samp-Arena\gamemodes\balkan1.pwn(15170) : warning 202: number of arguments does not match definition
D:\samp gamemodes\[BSA]Balkan Samp-Arena\gamemodes\balkan1.pwn(15170) : warning 202: number of arguments does not match definition
D:\samp gamemodes\[BSA]Balkan Samp-Arena\gamemodes\balkan1.pwn(18252) : warning 202: number of arguments does not match definition
D:\samp gamemodes\[BSA]Balkan Samp-Arena\gamemodes\balkan1.pwn(18345) : warning 202: number of arguments does not match definition
D:\samp gamemodes\[BSA]Balkan Samp-Arena\gamemodes\balkan1.pwn(18456) : error 075: input line too long (after substitutions)
D:\samp gamemodes\[BSA]Balkan Samp-Arena\gamemodes\balkan1.pwn(18457) : error 027: invalid character constant
D:\samp gamemodes\[BSA]Balkan Samp-Arena\gamemodes\balkan1.pwn(18457) : warning 215: expression has no effect
D:\samp gamemodes\[BSA]Balkan Samp-Arena\gamemodes\balkan1.pwn(18457) : error 001: expected token: ";", but found "."
D:\samp gamemodes\[BSA]Balkan Samp-Arena\gamemodes\balkan1.pwn(18457) : error 029: invalid expression, assumed zero
D:\samp gamemodes\[BSA]Balkan Samp-Arena\gamemodes\balkan1.pwn(18457) : 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.

MOLIM VAS POMOZITE MI KAKO DA RESIM OVE ERRORE!!!
Neke slike/video za lakse dobivanje pomoci(neobavezno):/
[BSA]Balkan Samp-Arena RolePlay [0.3d]
IP:188.40.57.132:7790 Posetite nas!!!

Mr.Gagi

Linija ti je predugacka skrati to moj savet da koristis:
http://wiki.sa-mp.com/wiki/Strcat
za tako text pa prouci malo ono sto sam ti dao.
if(IsPlayerConnected(playerid)) to nije potrebno


A za ostale errore i warninge daj linije
primer:
number of arguments does not match definition - nesto ti fali u kodu
symbol is assigned a value that is never used: - nigde se ne koristi obrises to
warning 216: nested comment - mislim da si negde stavio /* /* a treba /* */