[Pomoc]Problem u vezi compilanja.

Započeo AmcHo
12. Jul 2011.
2,461
pregleda
26
postova
bump
4
Enforcer
12. Jul 2011.
Procitaj pravila,usput skini INC a_npc

Skripta koju koristim:
Detaljan opis problema:
Dio skripte:
Neke slike/video za lakse dobivanje pomoci(neobavezno):
AmcHo
2
Wheel Man
12. Jul 2011.
Eto,edito sam.. Sad cu probat to skinut..

EDIT: Skinuo sam,ali ponovo isto -.-
bump
4
Enforcer
12. Jul 2011.
onda stavi // ispred a_npc  //#include
AmcHo
2
Wheel Man
12. Jul 2011.
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(1405😎 : 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(2103😎 : 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.
bump
4
Enforcer
12. Jul 2011.
daj linije u kodu
14058,14305,40424
AmcHo
2
Wheel Man
12. Jul 2011.
14058 - x_nr = strtok(cmdtext, idx);

14305- x_nr = strtok(cmdtext, idx);

40424-    return result;


REFRESH
Cookie
4
Shot Caller
13. Jul 2011.
Makni one // jer comentanje includova nece pomoci!!
skini novu verziju includa i stavi u pawno/includes
AmcHo
2
Wheel Man
13. Jul 2011.
Cookie wrote on July 13, 2011, 6:59 am:
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?
AmcHo
2
Wheel Man
13. Jul 2011.
Boki Pro wrote on July 13, 2011, 7:53 am:
Idi u folder de ti je gamemod>pawno>pawno i onda idi Load gamemod i onda compile.
Isto -.-'
Exploited
4
Shot Caller
13. Jul 2011.
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
AmcHo
2
Wheel Man
13. Jul 2011.
Xmolâ„¢ wrote on July 13, 2011, 9:51 am:
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 .?
Exploited
4
Shot Caller
13. Jul 2011.
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...
AmcHo
2
Wheel Man
13. Jul 2011.
13826-  if(strcmp(cmdtext, "/sprayer", true)==0)
{
    if (Tag == 0) return SendClientMessage(playerid,RED,"Nema napisanih grafita okolo");
    new string;
    for(new stags = 0; stags < MAX_TAGS; stags++)
    {
    if (PlayerToPoint(playerid,2,TagInfo,TagInfo,TagInfo))
      {
printf("%d - %d",Tag,stags);
      format(string,sizeof(string),"Graffit sprayer: %s - Graffit ID #%d",TagInfo,stags);
      SendClientMessage(playerid,GRAY,string);
      }
}
}

14059- if(strcmp(cmd, "/load", true) == 0) // by LordMan
{
    if(IsPlayerConnected(playerid))
    {
new x_nr;
x_nr = strtok(cmdtext, idx);
if(!strlen(x_nr))
{
    SendClientMessage(playerid, COLOR_WHITE, "Koristi: /load ");
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;
x_nr = strtok(cmdtext, idx);
if(!strlen(x_nr))
{
    SendClientMessage(playerid, COLOR_WHITE, "Koristi: /store ");
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] <= 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 ");
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/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, "Weapons: 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, "Weapons: 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, "Weapons: 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, "Weapons: 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;
}
Exploited
4
Shot Caller
13. Jul 2011.
new string;
new x_nr;
new x_nr;
Povecaj brojeve tu...
AmcHo
2
Wheel Man
13. Jul 2011.
Xmolâ„¢ wrote on July 13, 2011, 10:53 am:
new string;
new x_nr;
new x_nr;
Povecaj brojeve tu...
Jel m0ze bilo koji broj ?

Morate biti prijavljeni da biste odgovorili na ovu temu.

Prijava

© 2026 SmartShark. All rights reserved.

Powered by Momentum|v2026.3.001 Alpha