[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.

new string[28];
new x_nr[128];
new x_nr[128];
Povecaj brojeve tu...

Citat: Xmolâ,,¢ poslato Jul 13, 2011, 12:53:01 POSLE PODNE
new string[28];
new x_nr[128];
new x_nr[128];
Povecaj brojeve tu...
Jel m0ze bilo koji broj ?

Ae stavi svuda 5000,i reci sta je bilo...

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(21039) : warning 219: local variable "mod" shadows a variable at a preceding level
Pawn compiler 3.2.3664           Copyright (c) 1997-2006, ITB CompuPhase

Header size:          10948 bytes
Code size:          1693364 bytes
Data size:          5708064 bytes
Stack/heap size:      16384 bytes; estimated max. usage=9643 cells (38572 bytes)
Total requirements: 7428760 bytes

2 Warnings.

warning 219: local variable "mod" shadows a variable at a preceding level
za ovo izbrisi new mod = 100
a za prvi warn isto izbrisi new string[5000];
i javi sta je bilo

Citat: Xmolâ,,¢ poslato Jul 13, 2011, 13:21:34 POSLE PODNE
warning 219: local variable "mod" shadows a variable at a preceding level
za ovo izbrisi new mod = 100
a za prvi warn isto izbrisi new string[5000];
i javi sta je bilo
Jel da obisem samo to,ili jos nesto ispred,iza..?

Evo sta sam dobio kad sam izbrisao samo to sto si rekao:

C:\DOCUME~1\oler\Desktop\GAMEMO~1\GAMEMO~1.SAR\SAMPSE~1\GAMEMO~1\mojgm.pwn(21045 -- 21046) : error 076: syntax error in the expression, or invalid function call
C:\DOCUME~1\oler\Desktop\GAMEMO~1\GAMEMO~1.SAR\SAMPSE~1\GAMEMO~1\mojgm.pwn(21048 -- 21049) : error 076: syntax error in the expression, or invalid function call
C:\DOCUME~1\oler\Desktop\GAMEMO~1\GAMEMO~1.SAR\SAMPSE~1\GAMEMO~1\mojgm.pwn(21051 -- 21052) : error 076: syntax error in the expression, or invalid function call
C:\DOCUME~1\oler\Desktop\GAMEMO~1\GAMEMO~1.SAR\SAMPSE~1\GAMEMO~1\mojgm.pwn(21054 -- 21055) : error 076: syntax error in the expression, or invalid function call
C:\DOCUME~1\oler\Desktop\GAMEMO~1\GAMEMO~1.SAR\SAMPSE~1\GAMEMO~1\mojgm.pwn(21075) : error 076: syntax error in the expression, or invalid function call
C:\DOCUME~1\oler\Desktop\GAMEMO~1\GAMEMO~1.SAR\SAMPSE~1\GAMEMO~1\mojgm.pwn(21080) : error 076: syntax error in the expression, or invalid function call
C:\DOCUME~1\oler\Desktop\GAMEMO~1\GAMEMO~1.SAR\SAMPSE~1\GAMEMO~1\mojgm.pwn(21085) : error 076: syntax error in the expression, or invalid function call
C:\DOCUME~1\oler\Desktop\GAMEMO~1\GAMEMO~1.SAR\SAMPSE~1\GAMEMO~1\mojgm.pwn(21090) : error 076: syntax error in the expression, or invalid function call
C:\DOCUME~1\oler\Desktop\GAMEMO~1\GAMEMO~1.SAR\SAMPSE~1\GAMEMO~1\mojgm.pwn(21095) : error 076: syntax error in the expression, or invalid function call
C:\DOCUME~1\oler\Desktop\GAMEMO~1\GAMEMO~1.SAR\SAMPSE~1\GAMEMO~1\mojgm.pwn(21100) : error 076: syntax error in the expression, or invalid function call
C:\DOCUME~1\oler\Desktop\GAMEMO~1\GAMEMO~1.SAR\SAMPSE~1\GAMEMO~1\mojgm.pwn(21105) : error 076: syntax error in the expression, or invalid function call
C:\DOCUME~1\oler\Desktop\GAMEMO~1\GAMEMO~1.SAR\SAMPSE~1\GAMEMO~1\mojgm.pwn(21110) : error 076: syntax error in the expression, or invalid function call
C:\DOCUME~1\oler\Desktop\GAMEMO~1\GAMEMO~1.SAR\SAMPSE~1\GAMEMO~1\mojgm.pwn(21115) : error 076: syntax error in the expression, or invalid function call
C:\DOCUME~1\oler\Desktop\GAMEMO~1\GAMEMO~1.SAR\SAMPSE~1\GAMEMO~1\mojgm.pwn(21120) : error 076: syntax error in the expression, or invalid function call
C:\DOCUME~1\oler\Desktop\GAMEMO~1\GAMEMO~1.SAR\SAMPSE~1\GAMEMO~1\mojgm.pwn(21125) : error 076: syntax error in the expression, or invalid function call
C:\DOCUME~1\oler\Desktop\GAMEMO~1\GAMEMO~1.SAR\SAMPSE~1\GAMEMO~1\mojgm.pwn(21130) : error 076: syntax error in the expression, or invalid function call
C:\DOCUME~1\oler\Desktop\GAMEMO~1\GAMEMO~1.SAR\SAMPSE~1\GAMEMO~1\mojgm.pwn(21135) : error 076: syntax error in the expression, or invalid function call
C:\DOCUME~1\oler\Desktop\GAMEMO~1\GAMEMO~1.SAR\SAMPSE~1\GAMEMO~1\mojgm.pwn(21140) : error 076: syntax error in the expression, or invalid function call
C:\DOCUME~1\oler\Desktop\GAMEMO~1\GAMEMO~1.SAR\SAMPSE~1\GAMEMO~1\mojgm.pwn(21145) : error 076: syntax error in the expression, or invalid function call
C:\DOCUME~1\oler\Desktop\GAMEMO~1\GAMEMO~1.SAR\SAMPSE~1\GAMEMO~1\mojgm.pwn(21150) : error 076: syntax error in the expression, or invalid function call
C:\DOCUME~1\oler\Desktop\GAMEMO~1\GAMEMO~1.SAR\SAMPSE~1\GAMEMO~1\mojgm.pwn(21155) : error 076: syntax error in the expression, or invalid function call
C:\DOCUME~1\oler\Desktop\GAMEMO~1\GAMEMO~1.SAR\SAMPSE~1\GAMEMO~1\mojgm.pwn(21160) : error 076: syntax error in the expression, or invalid function call
C:\DOCUME~1\oler\Desktop\GAMEMO~1\GAMEMO~1.SAR\SAMPSE~1\GAMEMO~1\mojgm.pwn(21165) : error 076: syntax error in the expression, or invalid function call
Pawn compiler 3.2.3664           Copyright (c) 1997-2006, ITB CompuPhase


23 Errors.

Cek,vrati to sto si izbrisao....i sad samo izbrisi new mod = 100;  i reci sta je bilo....

Citat: Xmolâ,,¢ poslato Jul 13, 2011, 13:31:09 POSLE PODNE
Cek,vrati to sto si izbrisao....i sad samo izbrisi new mod = 100;  i reci sta je bilo....
Ponovo isto -.-

vrati onda i new mod = 100; , a stavi new string[256]; za
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
i postaj linije od new mod = 100; pa dole....

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;
            }

Kada stavis new string[256];   za onaj prvi warn,jel ti se resi ili ostane??...a za ovo ne znam,trebalo mi da se obrise new mod = 100;    ali posto nece ne znam.(posto je warn mozda ce da se skloni posle kada budes koristio tu komandu...:S)...

Citat: Xmolâ,,¢ poslato Jul 13, 2011, 15:24:09 POSLE PODNE
Kada stavis new string[256];   za onaj prvi warn,jel ti se resi ili ostane??...a za ovo ne znam,trebalo mi da se obrise new mod = 100;    ali posto nece ne znam.(posto je warn mozda ce da se skloni posle kada budes koristio tu komandu...:S)...
ostane sve isto.ajd ad cu probat uci...