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.
[Pomoc] Imam 3 greske
1,242
pregleda
13
postova
11. Jun 2011.
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..
a za ova dva..pa posto sam linije :S....
strtok(const string[], &index)
{
new length = strlen(string);
while ((index < length) && (string <= ' '))
{
index++;
}
new offset = index;
new result;
while ((index < length) && (string > ' ') && ((index - offset) < (sizeof(result) - 1)))
{
result[index - offset] = string;
index++;
}
result[index - offset] = EOS;
return result;
}a za ova dva..pa posto sam linije :S....
11. Jun 2011.
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(1760😎 : 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
C:\Documents and Settings\Admin\Desktop\New Folder\World of Gamers\gamemodes\WoG.pwn(1760😎 : 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
11. Jun 2011.
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 ");
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/100*mod,GunPrice/100*mod,GunPrice/100*mod,GunPrice/100*mod,GunPrice/100*mod,GunPrice/100*mod,GunPrice/100*mod);
SendClientMessage(playerid, COLOR_GRAD3, gunstring1);
format(gunstring2, 256, "Oružja: purpledildo ($%d) whitedildo ($%d) longwhitedildo ($%d) whitedildo2 ($%d) flowers ($%d) cane",
GunPrice/100*mod,GunPrice/100*mod,GunPrice/100*mod,GunPrice/100*mod,GunPrice/100*mod,GunPrice/100*mod);
SendClientMessage(playerid, COLOR_GRAD3, gunstring2);
format(gunstring3, 256, "Oružja: sdpistol ($%d) deagle ($%d) mp5 ($%d)",
GunPrice/100*mod,GunPrice/100*mod,GunPrice/100*mod,GunPrice/100*mod,GunPrice/100*mod,GunPrice/100*mod);
SendClientMessage(playerid, COLOR_GRAD3, gunstring3);
format(gunstring4, 256, "Oružja: shotgun ($%d) ak47 ($%d) m4 ($%d) rifle ($%d)",
GunPrice/100*mod,GunPrice/100*mod,GunPrice/100*mod,GunPrice/100*mod,GunPrice/100*mod,GunPrice/100*mod);
SendClientMessage(playerid, COLOR_GRAD3, gunstring4);
format(gunstring5, 256, "Oružja: pistolammo ($%d) shotgunammo ($%d) smgammo ($%d) assaultammo ($%d) rifleammo ($%d)",
GunPrice,GunPrice,GunPrice,GunPrice,GunPrice);
SendClientMessage(playerid, COLOR_GRAD3, gunstring5);
SendClientMessage(playerid, COLOR_GREEN,"_______________________________________");
return 1;
}11. Jun 2011.
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.
Morate biti prijavljeni da biste odgovorili na ovu temu.
Prijava