[Pomoc] Imam 3 greske

Započeo Xmolâ„¢, Jun 11, 2011, 15:04:42 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

Skripta koju koristim: Moj mod radjen od 0
Detaljan opis problema: kad idem compile izadju mi 3 greske :S
Dio skripte: /
Neke slike/video za lakse dobivanje pomoci(neobavezno):
Evo te 3 greske:

C:\Documents and Settings\Admin\Desktop\World of Gamers\WoG\gamemodes\WoG.pwn(13204) : error 021: symbol already defined: "strtok"
C:\Documents and Settings\Admin\Desktop\World of Gamers\WoG\gamemodes\WoG.pwn(13219) : error 047: array sizes do not match, or destination array is too small
C:\Documents and Settings\Admin\Desktop\World of Gamers\WoG\gamemodes\WoG.pwn(17627) : 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.

Citatsymbol already defined: "strtok"

dvaput ubacen
obrisi strtok [CTRL+F] samo 1 xd

za ostalo postaj linije..
Poslednja Izmena: Jun 11, 2011, 17:37:32 POSLE PODNE od [ЯPF] K4[Я]!K3

e brate evo ti deo skripte za prvi eror pa mi reci sta da obrisem..jer ja kad obrisem to sto si reko izadju mi jedno 15 erora :S..
strtok(const string[], &index)
{
new length = strlen(string);
while ((index < length) && (string[index] <= ' '))
{
index++;
}

new offset = index;
new result[50];
while ((index < length) && (string[index] > ' ') && ((index - offset) < (sizeof(result) - 1)))
{
result[index - offset] = string[index];
index++;
}
result[index - offset] = EOS;
return result;
}


a za ova dva..pa posto sam linije :S....

nadi ovo liniju di ti je mod i obrisi ju
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 √

13204 linija je ovo :
strtok(const string[], &index)  tu je greska sta ovde da izbrisem....ako izbrisem celu liniju izadje mi jedno 15 erora :SS..

makni tu liniju pa postaj tih 15 errora
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 √

resio sam tih 15 erora,nego posle toga mi izbaci 1 warn...evo i taj warn:

C:\Documents and Settings\Admin\Desktop\New Folder\World of Gamers\gamemodes\WoG.pwn(17608) : warning 219: local variable "mod" shadows a variable at a preceding level
Pawn compiler 3.2.3664           Copyright (c) 1997-2006, ITB CompuPhase


1 Warning.

evo ti deo skripte

new mod = 100;  --ova  linija je greska
Poslednja Izmena: Jun 11, 2011, 18:11:02 POSLE PODNE od Exploited

pa izbrisi tu liniju, vidis da pise shadows a variajble at preciding level, znaci da imas negdje prije toga tu varijablu
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 √

ne mogu da obrisem liniju zato sto dobijem ponovo jedno 15 erora: evo ti deo skripte :
                      new mod = 100;
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
format(string, sizeof(string), "{00CCFF}KORISTI:{FFFF00} /buygun [gunname] [ammoamount]");
SendClientMessage(playerid, COLOR_GREEN,"_______________________________________");
SendClientMessage(playerid, COLOR_WHITE,"*** Oružje i Municija ***");
SendClientMessage(playerid, COLOR_GRAD2,string);
format(gunstring1, 256, "Oružja: 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, "Oružja: 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, "Oružja: 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, "Oružja: 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, "Oružja: 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;
}
Poslednja Izmena: Jun 11, 2011, 18:44:43 POSLE PODNE od Exploited

samo ti obrisi i daj errore
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 √

C:\Documents and Settings\Admin\Desktop\New Folder\World of Gamers\gamemodes\WoG.pwn(15514) : error 017: undefined symbol "strtok"
C:\Documents and Settings\Admin\Desktop\New Folder\World of Gamers\gamemodes\WoG.pwn(15514) : error 033: array must be indexed (variable "cmd")
C:\Documents and Settings\Admin\Desktop\New Folder\World of Gamers\gamemodes\WoG.pwn(15582) : error 017: undefined symbol "strtok"
C:\Documents and Settings\Admin\Desktop\New Folder\World of Gamers\gamemodes\WoG.pwn(15582) : error 033: array must be indexed (variable "tmp")
C:\Documents and Settings\Admin\Desktop\New Folder\World of Gamers\gamemodes\WoG.pwn(15635) : error 017: undefined symbol "strtok"
C:\Documents and Settings\Admin\Desktop\New Folder\World of Gamers\gamemodes\WoG.pwn(15635) : error 033: array must be indexed (variable "tmp")
C:\Documents and Settings\Admin\Desktop\New Folder\World of Gamers\gamemodes\WoG.pwn(15688) : error 017: undefined symbol "strtok"
C:\Documents and Settings\Admin\Desktop\New Folder\World of Gamers\gamemodes\WoG.pwn(15688) : error 033: array must be indexed (variable "tmp")
C:\Documents and Settings\Admin\Desktop\New Folder\World of Gamers\gamemodes\WoG.pwn(16416) : error 017: undefined symbol "strtok"
C:\Documents and Settings\Admin\Desktop\New Folder\World of Gamers\gamemodes\WoG.pwn(16416) : error 033: array must be indexed (variable "tmp")
C:\Documents and Settings\Admin\Desktop\New Folder\World of Gamers\gamemodes\WoG.pwn(16425) : error 017: undefined symbol "strtok"
C:\Documents and Settings\Admin\Desktop\New Folder\World of Gamers\gamemodes\WoG.pwn(16425) : error 033: array must be indexed (variable "tmp")
C:\Documents and Settings\Admin\Desktop\New Folder\World of Gamers\gamemodes\WoG.pwn(16609) : error 017: undefined symbol "strtok"
C:\Documents and Settings\Admin\Desktop\New Folder\World of Gamers\gamemodes\WoG.pwn(16609) : error 033: array must be indexed (variable "tmp")
C:\Documents and Settings\Admin\Desktop\New Folder\World of Gamers\gamemodes\WoG.pwn(16640) : error 017: undefined symbol "strtok"
C:\Documents and Settings\Admin\Desktop\New Folder\World of Gamers\gamemodes\WoG.pwn(16640) : error 033: array must be indexed (variable "tmp")
C:\Documents and Settings\Admin\Desktop\New Folder\World of Gamers\gamemodes\WoG.pwn(16790) : error 017: undefined symbol "strtok"
C:\Documents and Settings\Admin\Desktop\New Folder\World of Gamers\gamemodes\WoG.pwn(16790) : error 033: array must be indexed (variable "tmp")
C:\Documents and Settings\Admin\Desktop\New Folder\World of Gamers\gamemodes\WoG.pwn(16893) : error 017: undefined symbol "strtok"
C:\Documents and Settings\Admin\Desktop\New Folder\World of Gamers\gamemodes\WoG.pwn(16893) : error 033: array must be indexed (variable "tmp")
C:\Documents and Settings\Admin\Desktop\New Folder\World of Gamers\gamemodes\WoG.pwn(16901) : error 017: undefined symbol "strtok"
C:\Documents and Settings\Admin\Desktop\New Folder\World of Gamers\gamemodes\WoG.pwn(16901) : error 033: array must be indexed (variable "tmp")
C:\Documents and Settings\Admin\Desktop\New Folder\World of Gamers\gamemodes\WoG.pwn(16976) : error 017: undefined symbol "strtok"
C:\Documents and Settings\Admin\Desktop\New Folder\World of Gamers\gamemodes\WoG.pwn(16976) : error 033: array must be indexed (variable "tmp")
C:\Documents and Settings\Admin\Desktop\New Folder\World of Gamers\gamemodes\WoG.pwn(17165) : error 017: undefined symbol "strtok"
C:\Documents and Settings\Admin\Desktop\New Folder\World of Gamers\gamemodes\WoG.pwn(17165) : error 033: array must be indexed (variable "tmp")

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


26 Errors.

reko sam izbrisi ono new mod a ne strtok
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 √