[Pomoc] Par errora i warninga koristenjem ZCMD

Započeo System32, April 21, 2011, 20:59:11 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 2 gostiju pregledaju ovu temu.

Skripta koju koristim:Freeroam by Fafu
Detaljan opis problema:Cijeli mod sam prebacio u ZCMD i kad idem kompajl dobijem 34 errora na jednoj liniji, treba define nesto a ja nezz kako :S
Errori i warninzi: C:\Rocket Dock fileovi\Svaštara\Server\pawno\include\dini.inc(239) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Rocket Dock fileovi\Svaštara\Server\pawno\include\dutils.inc(28) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Rocket Dock fileovi\Svaštara\Server\pawno\include\dutils.inc(132) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Rocket Dock fileovi\Svaštara\Server\pawno\include\dutils.inc(172) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Rocket Dock fileovi\Svaštara\Server\pawno\include\dutils.inc(280) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Rocket Dock fileovi\Svaštara\Server\pawno\include\dutils.inc(337) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Rocket Dock fileovi\Svaštara\Server\pawno\include\dutils.inc(379) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Rocket Dock fileovi\Svaštara\Server\gamemodes\freeroam.pwn(736) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Rocket Dock fileovi\Svaštara\Server\gamemodes\freeroam.pwn(758) : warning 202: number of arguments does not match definition
C:\Rocket Dock fileovi\Svaštara\Server\gamemodes\freeroam.pwn(758) : warning 202: number of arguments does not match definition
C:\Rocket Dock fileovi\Svaštara\Server\gamemodes\freeroam.pwn(758) : warning 202: number of arguments does not match definition
C:\Rocket Dock fileovi\Svaštara\Server\gamemodes\freeroam.pwn(758) : warning 202: number of arguments does not match definition
C:\Rocket Dock fileovi\Svaštara\Server\gamemodes\freeroam.pwn(759) : warning 202: number of arguments does not match definition
C:\Rocket Dock fileovi\Svaštara\Server\gamemodes\freeroam.pwn(759) : warning 202: number of arguments does not match definition
C:\Rocket Dock fileovi\Svaštara\Server\gamemodes\freeroam.pwn(759) : warning 202: number of arguments does not match definition
C:\Rocket Dock fileovi\Svaštara\Server\gamemodes\freeroam.pwn(775) : warning 219: local variable "name" shadows a variable at a preceding level
C:\Rocket Dock fileovi\Svaštara\Server\gamemodes\freeroam.pwn(793) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Rocket Dock fileovi\Svaštara\Server\gamemodes\freeroam.pwn(817) : warning 219: local variable "name" shadows a variable at a preceding level
C:\Rocket Dock fileovi\Svaštara\Server\gamemodes\freeroam.pwn(928) : warning 202: number of arguments does not match definition
C:\Rocket Dock fileovi\Svaštara\Server\gamemodes\freeroam.pwn(928) : warning 202: number of arguments does not match definition
C:\Rocket Dock fileovi\Svaštara\Server\gamemodes\freeroam.pwn(928) : warning 202: number of arguments does not match definition
C:\Rocket Dock fileovi\Svaštara\Server\gamemodes\freeroam.pwn(949) : warning 202: number of arguments does not match definition
C:\Rocket Dock fileovi\Svaštara\Server\gamemodes\freeroam.pwn(949) : warning 202: number of arguments does not match definition
C:\Rocket Dock fileovi\Svaštara\Server\gamemodes\freeroam.pwn(949) : warning 202: number of arguments does not match definition
C:\Rocket Dock fileovi\Svaštara\Server\gamemodes\freeroam.pwn(969) : warning 202: number of arguments does not match definition
C:\Rocket Dock fileovi\Svaštara\Server\gamemodes\freeroam.pwn(969) : warning 202: number of arguments does not match definition
C:\Rocket Dock fileovi\Svaštara\Server\gamemodes\freeroam.pwn(969) : warning 202: number of arguments does not match definition
C:\Rocket Dock fileovi\Svaštara\Server\gamemodes\freeroam.pwn(981) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Rocket Dock fileovi\Svaštara\Server\gamemodes\freeroam.pwn(993) : warning 202: number of arguments does not match definition
C:\Rocket Dock fileovi\Svaštara\Server\gamemodes\freeroam.pwn(993) : warning 202: number of arguments does not match definition
C:\Rocket Dock fileovi\Svaštara\Server\gamemodes\freeroam.pwn(993) : warning 202: number of arguments does not match definition
C:\Rocket Dock fileovi\Svaštara\Server\gamemodes\freeroam.pwn(1159) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Rocket Dock fileovi\Svaštara\Server\gamemodes\freeroam.pwn(1237) : error 017: undefined symbol "cmdtext"
C:\Rocket Dock fileovi\Svaštara\Server\gamemodes\freeroam.pwn(1237) : warning 215: expression has no effect
C:\Rocket Dock fileovi\Svaštara\Server\gamemodes\freeroam.pwn(1237) : error 001: expected token: ";", but found "]"
C:\Rocket Dock fileovi\Svaštara\Server\gamemodes\freeroam.pwn(1237) : error 029: invalid expression, assumed zero
C:\Rocket Dock fileovi\Svaštara\Server\gamemodes\freeroam.pwn(1237) : 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.

Dio skripte: Linija 1237 if(!cmdtext[0]) cijela komanda CMD:junior(playerid,params[])
{
if(!cmdtext[0])
    {
SendClientMessage(playerid, COLOR_WHITE, "* Koristenje: /jadmin [pass]");
return 1;
}

if(jadmin[playerid] == 1)
    {
SendClientMessage(playerid, COLOR_WARN, "* Vec ste logirani!");
}
else
{
if(udb_hash(cmdtext) != strval(dini_Get(SETTINGS, "pass_jadmin")))
        {
SendClientMessage(playerid, COLOR_WARN, "* Kriva lozinka! ");
        }
else
{
            jadmin[playerid] = 1;
            SendClientMessage(playerid, COLOR_GREEN, "* Logirani ste kao Junior Administrator!");
            SendClientMessage(playerid, COLOR_WHITE, "* Koristite /ahelp za prikazivanje liste admin komandi.");

}
}

return 1;
}

Neke slike/video za lakse dobivanje pomoci(neobavezno):
Uskoro novi stunt server iStunt. DoÄ'ite i zabavite se!




   
   




Dizajniram za $$$
Popis stvari koje radim:

Wallpaper √  Signature ×  Logo √  Dizajn stranice (Ne kodiranje) √  Baner √  Avatar √  Animacija √  Intro √

ZMCD komande idu izvan svih Callbackova, jesi proverio to ?
Citat: ...Neno... poslato Januar 26, 2013, 23:31:02 POSLE PODNE
Poceo sam mapati i tu je doslo do problema.Nakon par mapa,vidio sam post Gottia i kaze da nista nevalja da je katastrofa,i pocnemo se svadjati,psovati.Popusimo bananu obojica,i nakon toga nesto sam napravio (mapu) i Gotti kaze dobra,uh reko opet me zajebava,i saljem ja njemu na pm reko ti mene zajebavas,kaze on ne,i pomirimo se.Nakon toga postali smo dosta dobri

jesam,ovu komandu sam napravio iz DCMD u ZCMD mozda je do toga?Samo mi treba define od ovog cuda
Uskoro novi stunt server iStunt. DoÄ'ite i zabavite se!




   
   




Dizajniram za $$$
Popis stvari koje radim:

Wallpaper √  Signature ×  Logo √  Dizajn stranice (Ne kodiranje) √  Baner √  Avatar √  Animacija √  Intro √

Pa ne možeš koristiti cmdtext kad toga nema u ZCMD-u.


CMD:junior(playerid,params[])
{
   if(!params[0])
      {
      SendClientMessage(playerid, COLOR_WHITE, "* Koristenje: /jadmin [pass]");
      return 1;
    }

   if(jadmin[playerid] == 1)
    {
      SendClientMessage(playerid, COLOR_WARN, "* Vec ste logirani!");
   }
   else
   {
      if(udb_hash(params) != strval(dini_Get(SETTINGS, "pass_jadmin")))
        {
         SendClientMessage(playerid, COLOR_WARN, "* Kriva lozinka! ");
        }
      else
      {
            jadmin[playerid] = 1;
            SendClientMessage(playerid, COLOR_GREEN, "* Logirani ste kao Junior Administrator!");
            SendClientMessage(playerid, COLOR_WHITE, "* Koristite /ahelp za prikazivanje liste admin komandi.");

      }
   }

    return 1;
}

Last nick: Paradox

popravio sam to i makao jedan-2 errora no nemogu se rjesit drugih ako bi mi neko mogao to rjesit da mu posaljem dl od GM molim vas!
Uskoro novi stunt server iStunt. DoÄ'ite i zabavite se!




   
   




Dizajniram za $$$
Popis stvari koje radim:

Wallpaper √  Signature ×  Logo √  Dizajn stranice (Ne kodiranje) √  Baner √  Avatar √  Animacija √  Intro √