[Pomoc] Komanda /credits

Započeo vlado_plavsic, Jun 09, 2011, 14:36:47 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

vlado_plavsic

Skripta koju koristim: Raven's RolePlay
Detaljan opis problema: Napravio sam komandu /Credits i izbacuje mi neke errore,mozete li mi reci kako da ih popravim...
Dio skripte:if(strcmp(cmdtext,"/credits",true) == 0)
         {
         ShowPlayerDialog(playerid,91,DIALOG_STYLE_MSGBOX,"Balkanika RolePlay Credits",""COLOR_RED"Informacije: GameMod je edit Raven's RolePlay Skripte!\n\n"COLOR_GREEN"1.Skripter: Plavsa\n"COLOR_YELLOW"Mapper: Plavsa\n"COLOR_GREEN"Vlasnik: Plavsa\n"COLOR_RED"Forum: Uskoro\n"COLOR_BLUE"Verzija GameModa: v1.0\n"COLOR_YELLOW"Sponzor: /"COLOR_RED"\n\nVeliko hvala Raven's RP Creator-u - CuervO","Uredu","");
         }


Neke slike/video za lakse dobivanje pomoci(neobavezno): /
Poslednja Izmena: Jun 09, 2011, 14:37:51 POSLE PODNE od Vlado_Plavsic


vlado_plavsic

Ja zaboravi da ih post :D

C:\Users\Marko\Desktop\Raven's Roleplay 0.3c\gamemodes\larp.pwn(61059) : warning 217: loose indentation
C:\Users\Marko\Desktop\Raven's Roleplay 0.3c\gamemodes\larp.pwn(61061) : error 001: expected token: "-string end-", but found "-identifier-"
C:\Users\Marko\Desktop\Raven's Roleplay 0.3c\gamemodes\larp.pwn(61061) : error 001: expected token: "-string end-", but found "-identifier-"
C:\Users\Marko\Desktop\Raven's Roleplay 0.3c\gamemodes\larp.pwn(61061) : warning 215: expression has no effect
C:\Users\Marko\Desktop\Raven's Roleplay 0.3c\gamemodes\larp.pwn(61061) : error 001: expected token: ";", but found "-integer value-"
C:\Users\Marko\Desktop\Raven's Roleplay 0.3c\gamemodes\larp.pwn(61061) : fatal error 107: too many error messages on one line

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


4 Errors.


//Nije do toga moja greska
Poslednja Izmena: Jun 09, 2011, 15:23:51 POSLE PODNE od Mafia Sused

Citat: Vlado_Plavsic poslato Jun 09, 2011, 14:39:16 POSLE PODNE
Ja zaboravi da ih post :D

C:\Users\Marko\Desktop\Raven's Roleplay 0.3c\gamemodes\larp.pwn(61059) : warning 217: loose indentation
C:\Users\Marko\Desktop\Raven's Roleplay 0.3c\gamemodes\larp.pwn(61061) : error 001: expected token: "-string end-", but found "-identifier-"
C:\Users\Marko\Desktop\Raven's Roleplay 0.3c\gamemodes\larp.pwn(61061) : error 001: expected token: "-string end-", but found "-identifier-"
C:\Users\Marko\Desktop\Raven's Roleplay 0.3c\gamemodes\larp.pwn(61061) : warning 215: expression has no effect
C:\Users\Marko\Desktop\Raven's Roleplay 0.3c\gamemodes\larp.pwn(61061) : error 001: expected token: ";", but found "-integer value-"
C:\Users\Marko\Desktop\Raven's Roleplay 0.3c\gamemodes\larp.pwn(61061) : fatal error 107: too many error messages on one line

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


4 Errors.

Linije? (CTRL + G)

vlado_plavsic

Dao sam vec gore :

          ShowPlayerDialog(playerid,91,DIALOG_STYLE_MSGBOX,"Balkanika RolePlay Credits",""COLOR_RED"Informacije: GameMod je edit Raven's RolePlay Skripte!\n\n"COLOR_GREEN"1.Skripter: Plavsa\n"COLOR_YELLOW"Mapper: Plavsa\n"COLOR_GREEN"Vlasnik: Plavsa\n"COLOR_RED"Forum: Uskoro\n"COLOR_BLUE"Verzija GameModa: v1.0\n"COLOR_YELLOW"Sponzor: /"COLOR_RED"\n\nVeliko hvala Raven's RP Creator-u - CuervO","Uredu","");

Probaj ovako ShowPlayerDialog(playerid,91,DIALOG_STYLE_MSGBOX,"Balkanika RolePlay Credits","~r~Informacije: GameMod je edit Raven's RolePlay Skripte!\n\n~g~1.Skripter: Plavsa\n~y~Mapper: Plavsa\n~g~Vlasnik: Plavsa\n~r~Forum: Uskoro\n~b~Verzija GameModa: v1.0\n~y~Sponzor: /n~r~\n\nVeliko hvala Raven's RP Creator-u - CuervO","Uredu","");

vlado_plavsic

Sad mi se stvorio .amx fajl al ipak imam jos 2 errora...:S


C:\Users\Marko\Desktop\Raven's Roleplay 0.3c\gamemodes\larp.pwn(61060) : warning 217: loose indentation
C:\Users\Marko\Desktop\Raven's Roleplay 0.3c\gamemodes\larp.pwn(61065) : warning 217: loose indentation
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase


2 Warnings.



I komandu mi otvara al mi u chat-u izbaci da komanda ne postoji?



Poslednja Izmena: Jun 10, 2011, 09:33:45 PRE PODNE od Vlado_Plavsic

C:\Users\Marko\Desktop\Raven's Roleplay 0.3c\gamemodes\larp.pwn(61060) : warning 217: loose indentation 
C:\Users\Marko\Desktop\Raven's Roleplay 0.3c\gamemodes\larp.pwn(61065) : warning 217: loose indentation 

Nisi nesto lepo poredjao u skripti...Mislim da su linije u redu ovako:

if(condition)
{
    action();
    result();
}

a ne ovako:

if(condition)
{
    action();
  result();
}

Ispisuje ti za da komanda ne radi, jel nisi stavio return 1; - da vrati 1 - odnosno da je komanda izvrsena :D

znaci stavi

Showplayeridalog
return 1; ili return true;

vlado_plavsic

Moze mod da locka temu resio sam problem.....pozz
Poslednja Izmena: Jun 10, 2011, 16:45:34 POSLE PODNE od Vlado_Plavsic