Procitaj pravila,usput skini INC a_npc
Skripta koju koristim:
Detaljan opis problema:
Dio skripte:
Neke slike/video za lakse dobivanje pomoci(neobavezno):
[Pomoc]Problem u vezi compilanja.
2,461
pregleda
26
postova
12. Jul 2011.
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.
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.
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
skini novu verziju includa i stavi u pawno/includes
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
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 .?
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;
}
{
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;
}
Morate biti prijavljeni da biste odgovorili na ovu temu.
Prijava