[Pomoc]Problem u vezi compilanja.

Započeo AmcHo, Jul 12, 2011, 22:42:44 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 2 gostiju pregledaju ovu temu.

Skripta koju koristim:Vegina mojgm
Detaljan opis problema:Editam neka imena u skripti,i idem na compile/run i stvori mi se dole navedeno..
Dio skripte: /
Neke slike/video za lakse dobivanje pomoci(neobavezno):
C:\DOCUME~1\xxx\Desktop\GAMEMO~1\GAMEMO~1.SAR\SAMPSE~1\GAMEMO~1\mojgm.pwn(6) : fatal error 100: cannot read from file: "a_npc"

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


1 Error.
Poslednja Izmena: Jul 12, 2011, 22:52:52 POSLE PODNE od AmcHo

Procitaj pravila,usput skini INC a_npc

Skripta koju koristim:
Detaljan opis problema:
Dio skripte:
Neke slike/video za lakse dobivanje pomoci(neobavezno):
Poslednja Izmena: Jul 12, 2011, 22:47:46 POSLE PODNE od [PG]Bump!

Eto,edito sam.. Sad cu probat to skinut..

EDIT: Skinuo sam,ali ponovo isto -.-
Poslednja Izmena: Jul 12, 2011, 22:55:19 POSLE PODNE od AmcHo

onda stavi // ispred a_npc  //#include <a_npc>
Poslednja Izmena: Jul 12, 2011, 23:21:38 POSLE PODNE od [PG]Bump!

To je rjeseno,sad su novi errori:

C:\DOCUME~1\oler\Desktop\GAMEMO~1\GAMEMO~1.SAR\SAMPSE~1\GAMEMO~1\mojgm.pwn(13825) : warning 219: local variable "string" shadows a variable at a preceding level
C:\DOCUME~1\oler\Desktop\GAMEMO~1\GAMEMO~1.SAR\SAMPSE~1\GAMEMO~1\mojgm.pwn(14058) : error 047: array sizes do not match, or destination array is too small
C:\DOCUME~1\oler\Desktop\GAMEMO~1\GAMEMO~1.SAR\SAMPSE~1\GAMEMO~1\mojgm.pwn(14305) : error 047: array sizes do not match, or destination array is too small
C:\DOCUME~1\oler\Desktop\GAMEMO~1\GAMEMO~1.SAR\SAMPSE~1\GAMEMO~1\mojgm.pwn(21038) : warning 219: local variable "mod" shadows a variable at a preceding level
C:\DOCUME~1\oler\Desktop\GAMEMO~1\GAMEMO~1.SAR\SAMPSE~1\GAMEMO~1\mojgm.pwn(40409) : error 021: symbol already defined: "strtok"
C:\DOCUME~1\oler\Desktop\GAMEMO~1\GAMEMO~1.SAR\SAMPSE~1\GAMEMO~1\mojgm.pwn(40424) : error 047: array sizes do not match, or destination array is too small
Pawn compiler 3.2.3664           Copyright (c) 1997-2006, ITB CompuPhase


4 Errors.


14058 -    x_nr = strtok(cmdtext, idx);

14305-   x_nr = strtok(cmdtext, idx);

40424-     return result;



REFRESH
Poslednja Izmena: Jul 13, 2011, 00:26:40 PRE PODNE od AmcHo

Makni one // jer comentanje includova nece pomoci!!
skini novu verziju includa i stavi u pawno/includes



Citat: Cookie poslato Jul 13, 2011, 08:59:54 PRE PODNE
Makni one // jer comentanje includova nece pomoci!!
skini novu verziju includa i stavi u pawno/includes
Taj je problem rijesen,skinuo sam novi i to je to..Ali ovaj novi sto sam napisao?


Citat: Boki Pro poslato Jul 13, 2011, 09:53:03 PRE PODNE
Idi u folder de ti je gamemod>pawno>pawno i onda idi Load gamemod i onda compile.
Isto -.-'

C:\DOCUME~1\oler\Desktop\GAMEMO~1\GAMEMO~1.SAR\SAMPSE~1\GAMEMO~1\mojgm.pwn(40409) : error 021: symbol already defined: "strtok"
za ovaj error samo izbrisi tu liniju

Citat: Xmolâ,,¢ poslato Jul 13, 2011, 11:51:07 PRE PODNE
C:\DOCUME~1\oler\Desktop\GAMEMO~1\GAMEMO~1.SAR\SAMPSE~1\GAMEMO~1\mojgm.pwn(40409) : error 021: symbol already defined: "strtok"
za ovaj error samo izbrisi tu liniju
C:\DOCUME~1\oler\Desktop\GAMEMO~1\GAMEMO~1.SAR\SAMPSE~1\GAMEMO~1\mojgm.pwn(13826) : warning 219: local variable "string" shadows a variable at a preceding level
C:\DOCUME~1\oler\Desktop\GAMEMO~1\GAMEMO~1.SAR\SAMPSE~1\GAMEMO~1\mojgm.pwn(14059) : error 047: array sizes do not match, or destination array is too small
C:\DOCUME~1\oler\Desktop\GAMEMO~1\GAMEMO~1.SAR\SAMPSE~1\GAMEMO~1\mojgm.pwn(14306) : error 047: array sizes do not match, or destination array is too small
C:\DOCUME~1\oler\Desktop\GAMEMO~1\GAMEMO~1.SAR\SAMPSE~1\GAMEMO~1\mojgm.pwn(21039) : warning 219: local variable "mod" shadows a variable at a preceding level
Pawn compiler 3.2.3664           Copyright (c) 1997-2006, ITB CompuPhase


2 Errors.
Sad su 2 errora .?

Ajde daj malo vise od te linije (jedno 5,6 linija gore i 5,6 linija dole od te linije gde je error) i za prvi i za drugi error...
Poslednja Izmena: Jul 13, 2011, 12:23:05 POSLE PODNE od Xmolâ„¢

13826-  if(strcmp(cmdtext, "/sprayer", true)==0)
   {
       if (Tag == 0) return SendClientMessage(playerid,RED,"Nema napisanih grafita okolo");
       new string[28];
       for(new stags = 0; stags < MAX_TAGS; stags++)
       {
          if (PlayerToPoint(playerid,2,TagInfo[stags][grafx],TagInfo[stags][grafy],TagInfo[stags][grafz]))
            {
            printf("%d - %d",Tag,stags);
                format(string,sizeof(string),"Graffit sprayer: %s - Graffit ID #%d",TagInfo[stags][tgSprayer],stags);
                SendClientMessage(playerid,GRAY,string);
            }
      }
   }

14059- if(strcmp(cmd, "/load", true) == 0) // by LordMan
   {
       if(IsPlayerConnected(playerid))
       {
         new x_nr[128];
         x_nr = strtok(cmdtext, idx);
         if(!strlen(x_nr))
         {
             SendClientMessage(playerid, COLOR_WHITE, "Koristi: /load [name] [ammount]");
            SendClientMessage(playerid, COLOR_WHITE, "Dostupna imena: drugs, materials, weapon, weapon2, weapon3, weapon4");
            return 1;
         }

14306-    if(strcmp(cmd, "/store", true) == 0) // by LordMan
   {
       if(IsPlayerConnected(playerid))
       {
         new x_nr[128];
         x_nr = strtok(cmdtext, idx);
         if(!strlen(x_nr))
         {
             SendClientMessage(playerid, COLOR_WHITE, "Koristi: /store [name] [ammount]");
            SendClientMessage(playerid, COLOR_WHITE, "Dostupna imena: drugs, materials, weapon, weapon2, weapon3, weapon4");
            return 1;
         }

21039-   if(location == 99 || location == 100 || location == 102)
         {
             if(BizzInfo[location-99][bProducts] <= 0)
             {
                 GameTextForPlayer(playerid, "~r~Out Of Stock", 5000, 1);
               return 1;
             }
            new mod = 100;
    tmp = strtok(cmdtext, idx);
            if(!strlen(tmp))
            {
               format(string, sizeof(string), "Koristi: /buygun [gunname] [ammoamount]");
               SendClientMessage(playerid, COLOR_GREEN,"_______________________________________");
               SendClientMessage(playerid, COLOR_WHITE,"*** Guns & Ammo ***");
               SendClientMessage(playerid, COLOR_GRAD2,string);
               format(gunstring1, 256, "Weapons: parachute ($%d) golfclub ($%d) nightstick ($%d) baseballbat ($%d) shovel ($%d) poolcue ($%d)",
               GunPrice[0][0]/100*mod,GunPrice[1][0]/100*mod,GunPrice[2][0]/100*mod,GunPrice[3][0]/100*mod,GunPrice[4][0]/100*mod,GunPrice[5][0]/100*mod,GunPrice[6][0]/100*mod);
               SendClientMessage(playerid, COLOR_GRAD3, gunstring1);
               format(gunstring2, 256, "Weapons: purpledildo ($%d) whitedildo ($%d) longwhitedildo ($%d) whitedildo2 ($%d) flowers ($%d) cane",
               GunPrice[7][0]/100*mod,GunPrice[8][0]/100*mod,GunPrice[9][0]/100*mod,GunPrice[10][0]/100*mod,GunPrice[11][0]/100*mod,GunPrice[12][0]/100*mod);
               SendClientMessage(playerid, COLOR_GRAD3, gunstring2);
               format(gunstring3, 256, "Weapons: sdpistol ($%d) deagle ($%d) mp5 ($%d)",
               GunPrice[13][0]/100*mod,GunPrice[14][0]/100*mod,GunPrice[15][0]/100*mod,GunPrice[16][0]/100*mod,GunPrice[17][0]/100*mod,GunPrice[18][0]/100*mod);
               SendClientMessage(playerid, COLOR_GRAD3, gunstring3);
               format(gunstring4, 256, "Weapons: shotgun ($%d) ak47 ($%d) m4 ($%d) rifle ($%d)",
               GunPrice[19][0]/100*mod,GunPrice[20][0]/100*mod,GunPrice[21][0]/100*mod,GunPrice[22][0]/100*mod,GunPrice[23][0]/100*mod,GunPrice[24][0]/100*mod);
               SendClientMessage(playerid, COLOR_GRAD3, gunstring4);
               format(gunstring5, 256, "Weapons: pistolammo ($%d) shotgunammo ($%d) smgammo ($%d) assaultammo ($%d) rifleammo ($%d)",
               GunPrice[25][0],GunPrice[26][0],GunPrice[27][0],GunPrice[28][0],GunPrice[29][0]);
               SendClientMessage(playerid, COLOR_GRAD3, gunstring5);
               SendClientMessage(playerid, COLOR_GREEN,"_______________________________________");
               return 1;
            }