[POMOC] erori

Započeo MosT_WanteD, Avgust 31, 2010, 10:06:58 PRE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

radio sam na novoj skripti i htio da ubacim komandu makeadmin ja sam uzo ovo i prekopirao na drugi   
if(strcmp(cmd, "/makeadmin", true) == 0)
   {
      tmp = strtok(cmdtext, idx);
      if(!strlen(tmp))
      {
         SendClientMessage(playerid, COLOR_GRAD2, "Pisi: /makeadmin [id igraca/Dio imena] [level(1-3)]");
         return 1;
      }
      new para1;
      new level;
      if(IsStringAName(tmp))
      {
         para1 = GetPlayerID(tmp);
      }
      else
      {
         para1 = strval(tmp);
      }
      tmp = strtok(cmdtext, idx);
      level = strval(tmp);
      if ((IsPlayerAdmin(playerid)) || PlayerInfo[playerid][pAdmin] == 1338)
      {
         GetPlayerName(para1, giveplayer, sizeof(giveplayer));
         GetPlayerName(playerid, sendername, sizeof(sendername));
         PlayerInfo[para1][pAdmin] = level;
         printf("Nisi CrazY BalkaN [DM] Admin: %s je prmovirao %s u level %d  CrazY BalkaN [DM] Admina.", sendername, giveplayer, level);
         format(string, sizeof(string), "   Promoviran si u level %d  CrazY BalkaN [DM] Admina od %s", level, sendername);
         SendClientMessage(para1, COLOR_GRAD1, string);
         format(string, sizeof(string), "   Promovirao si %s u level %d  CrazY BalkaN [DM] Admin.", giveplayer,level);
         SendClientMessage(playerid, COLOR_GRAD1, string);
      }
      else
      {
         SendClientMessage(playerid, COLOR_GRAD1, "   nisi ovlasten da koristis tu komandu!");
      }
      return 1;
   }
i javlja mi ove eroore
C:\Documents and Settings\cvrčak\Desktop\CrazY BalkaN STUNT\gamemodes\CBS.pwn(858) : error 017: undefined symbol "cmd"
C:\Documents and Settings\cvrčak\Desktop\CrazY BalkaN STUNT\gamemodes\CBS.pwn(860) : error 017: undefined symbol "tmp"
C:\Documents and Settings\cvrčak\Desktop\CrazY BalkaN STUNT\gamemodes\CBS.pwn(860) : error 017: undefined symbol "strtok"
C:\Documents and Settings\cvrčak\Desktop\CrazY BalkaN STUNT\gamemodes\CBS.pwn(861) : error 017: undefined symbol "tmp"
C:\Documents and Settings\cvrčak\Desktop\CrazY BalkaN STUNT\gamemodes\CBS.pwn(863) : error 017: undefined symbol "COLOR_GRAD2"
C:\Documents and Settings\cvrčak\Desktop\CrazY BalkaN STUNT\gamemodes\CBS.pwn(868) : error 017: undefined symbol "IsStringAName"
C:\Documents and Settings\cvrčak\Desktop\CrazY BalkaN STUNT\gamemodes\CBS.pwn(870) : error 017: undefined symbol "GetPlayerID"
C:\Documents and Settings\cvrčak\Desktop\CrazY BalkaN STUNT\gamemodes\CBS.pwn(874) : error 017: undefined symbol "tmp"
C:\Documents and Settings\cvrčak\Desktop\CrazY BalkaN STUNT\gamemodes\CBS.pwn(876) : error 017: undefined symbol "tmp"
C:\Documents and Settings\cvrčak\Desktop\CrazY BalkaN STUNT\gamemodes\CBS.pwn(876) : error 017: undefined symbol "strtok"
C:\Documents and Settings\cvrčak\Desktop\CrazY BalkaN STUNT\gamemodes\CBS.pwn(877) : error 017: undefined symbol "tmp"
C:\Documents and Settings\cvrčak\Desktop\CrazY BalkaN STUNT\gamemodes\CBS.pwn(878) : error 017: undefined symbol "PlayerInfo"
C:\Documents and Settings\cvrčak\Desktop\CrazY BalkaN STUNT\gamemodes\CBS.pwn(878) : warning 215: expression has no effect
C:\Documents and Settings\cvrčak\Desktop\CrazY BalkaN STUNT\gamemodes\CBS.pwn(878) : error 001: expected token: ";", but found "]"
C:\Documents and Settings\cvrčak\Desktop\CrazY BalkaN STUNT\gamemodes\CBS.pwn(878) : error 029: invalid expression, assumed zero
C:\Documents and Settings\cvrčak\Desktop\CrazY BalkaN STUNT\gamemodes\CBS.pwn(878) : fatal error 107: too many error messages on one line
u cemu je problem jer ova komanda mi radi na dm serveeru dali treba jos nesto dodati
LOL

Znaci ti si uzeo komandu s druge skripte koja nema veze s ovom i htio ubacit komndu. *faceplam*
Ako i rijesis errore ti ta komanda nece raditi ako nemas GF strukturu podataka.


RESPECT 4 EVER: John, GLC,bAndzi, Nikola, Sop, Zoki, Bruno_Venuti, Mele, Luka P,ExtremePower,Wang(neki kineski frajer)

NAJBOLJI CITATI:
Citat: [GF]Alive poslato Jun 24, 2010, 18:20:19 POSLE PODNE
Paizte ljud mozda je KayLoger! ! !
MOJI RADOVI:
[FS]Trofeji

Neznam KAD cete svatit ali poceti od nule i uzet GF i editat NIJE isto :S nemos sam tak to moras prek varijabli i moras to spremat s statsima i onda to onak alvl=0(1;2;3;4;5;6;7)kolko os..
Datum registracije:    Listopad 21, 2009, 15:56:43
|Rick Dunn| NaNx |Soldier |
|Maper | Web Developer [HTML+CSS] | C++ beginner |

Respect: Karike, Chris, ///Masic, Stormer, Walter, NeNo, Pacino, NaNek