[POMOC] Ubaciti red u skriptu

Započeo Huan Escobar, Februar 06, 2016, 15:17:01 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 2 gostiju pregledaju ovu temu.

Skripta koju koristim: Ne znam
Detaljan opis problema: nece da mi ubaci red koda izbacuje mi errore stalno
Dio skripte: if(strcmp(cmd,"/makegun",true)==0)
{
if(IsPlayerConnected(playerid))
{
if(PlayerInfo[playerid][pLeader] == 6 || PlayerInfo[playerid][pLeader] == 5 || PlayerInfo[playerid][pLeader] == 15 || PlayerInfo[playerid][pLeader] == 16 || PlayerInfo[playerid][pMember] == 6 || PlayerInfo[playerid][pMember] == 5 || PlayerInfo[playerid][pMember] == 15 || PlayerInfo[playerid][pMember] == 16)
{
new x_weapon[256],weapon[MAX_PLAYERS],ammo[MAX_PLAYERS],price[MAX_PLAYERS];
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, GRAY, "[Koriscenje]: {FFFFFF}/sellgun [ID Igraca/Dio Imena] [ime oruzija]");
SendClientMessage(playerid, GRAY, "[Oruzije]: {FFFFFF}noz(25) pajser(25) palica(25) sdpistolj(50) dezert(100) m4(500)");
SendClientMessage(playerid, GRAY, "[Oruzije]: {FFFFFF}hekler(200) tec9(250) uzi(250) pumparica(200) puska (250) kalas(500) snajper (1000)");
return 1;
}
if(PlayerInfo[playerid][pJailed] == 1)
{
SCM(playerid,GRAY,"Ne mozete koristiti tu komandu dok ste u zatvoru!");
return 1;
}
giveplayerid = ReturnUser(tmp);
if (IsPlayerConnected(giveplayerid))
{
if(PlayerInfo[giveplayerid][pLevel] < 2)
{
SendClientMessage(playerid, GRAY, "Igrac mora biti minimum level 2! ");
return 1;
}
if(giveplayerid != INVALID_PLAYER_ID)
{
x_weapon = strtok(cmdtext, idx);
if(!strlen(x_weapon))
{
SendClientMessage(playerid, GRAY, "[Koriscenje]: {FFFFFF}/sellgun [ID Igraca/Dio Imena] [ime oruzija]");
SendClientMessage(playerid, GRAY, "[Oruzije]: {FFFFFF}noz(25) pajser(25) palica(25) sdpistolj(50) dezert(100) m4(500)");
SendClientMessage(playerid, GRAY, "[Oruzije]: {FFFFFF}hekler(200) tec9(250) uzi(250) pumparica(200) puska (250) kalas(500) snajper (1000)");
return 1;
}
}
if(strcmp(x_weapon,"noz",true) == 0) { if(PlayerInfo[playerid][pMats] > 24) { weapon[playerid] = 4; price[playerid] = 25; ammo[playerid] = 1; } else { SendClientMessage(playerid,COLOR_GREY,"   Nemate dovoljno materijala za to oruzije!"); return 1; } }
else if(strcmp(x_weapon,"palica",true) == 0) { if(PlayerInfo[playerid][pMats] > 24) { weapon[playerid] = 5; price[playerid] = 25; ammo[playerid] = 1; } else { SendClientMessage(playerid,COLOR_GREY,"   Nemate dovoljno materijala za to oruzije!"); return 1; } }
else if(strcmp(x_weapon,"pajser",true) == 0) { if(PlayerInfo[playerid][pMats] > 24) { weapon[playerid] = 15; price[playerid] = 25; ammo[playerid] = 1; } else { SendClientMessage(playerid,COLOR_GREY,"   Nemate dovoljno materijala za to oruzije!"); return 1; } }
else if(strcmp(x_weapon,"sdpistolj",true) == 0) { if(PlayerInfo[playerid][pMats] > 24) { weapon[playerid] = 23; price[playerid] = 25; ammo[playerid] = 50; } else { SendClientMessage(playerid,COLOR_GREY,"   Nemate dovoljno materijala za to oruzije!"); return 1; } }
else if(strcmp(x_weapon,"dezert",true) == 0) { if(PlayerInfo[playerid][pMats] > 99) { weapon[playerid] = 24; price[playerid] = 100; ammo[playerid] = 50; } else { SendClientMessage(playerid,COLOR_GREY,"   Nemate dovoljno materijala za to oruzije!"); return 1; } }
else if(strcmp(x_weapon,"hekler",true) == 0) { if(PlayerInfo[playerid][pMats] > 199) { weapon[playerid] = 29; price[playerid] = 200; ammo[playerid] = 150; } else { SendClientMessage(playerid,COLOR_GREY,"   Nemate dovoljno materijala za to oruzije!"); return 1; } }
else if(strcmp(x_weapon,"uzi",true) == 0) { if(PlayerInfo[playerid][pMats] > 249) { weapon[playerid] = 28; price[playerid] = 250; ammo[playerid] = 200; } else { SendClientMessage(playerid,COLOR_GREY,"   Nemate dovoljno materijala za to oruzije!"); return 1; } }
else if(strcmp(x_weapon,"tec9",true) == 0) { if(PlayerInfo[playerid][pMats] > 249) { weapon[playerid] = 32; price[playerid] = 250; ammo[playerid] = 200; } else { SendClientMessage(playerid,COLOR_GREY,"   Nemate dovoljno materijala za to oruzije!"); return 1; } }
else if(strcmp(x_weapon,"pumparica",true) == 0) { if(PlayerInfo[playerid][pMats] > 199) { weapon[playerid] = 25; price[playerid] = 200; ammo[playerid] = 100; } else { SendClientMessage(playerid,COLOR_GREY,"   Nemate dovoljno materijala za to oruzije!"); return 1; } }
else if(strcmp(x_weapon,"kalas",true) == 0) { if(PlayerInfo[playerid][pMats] > 499) { weapon[playerid] = 30; price[playerid] = 500; ammo[playerid] = 250; } else { SendClientMessage(playerid,COLOR_GREY,"   Nemate dovoljno materijala za to oruzije!"); return 1; } }
else if(strcmp(x_weapon,"m4",true) == 0) { if(PlayerInfo[playerid][pMats] > 499) { weapon[playerid] = 31; price[playerid] = 500; ammo[playerid] = 250; } else { SendClientMessage(playerid,COLOR_GREY,"   Nemate dovoljno materijala za to oruzije!"); return 1; } }
else if(strcmp(x_weapon,"puska",true) == 0) { if(PlayerInfo[playerid][pMats] > 249) { weapon[playerid] = 33; price[playerid] = 250; ammo[playerid] = 60; } else { SendClientMessage(playerid,COLOR_GREY,"   Nemate dovoljno materijala za to oruzije!"); return 1; } }
else if(strcmp(x_weapon,"snajper",true) == 0) { if(PlayerInfo[playerid][pMats] > 999) { weapon[playerid] = 34; price[playerid] = 1000; ammo[playerid] = 50; } else { SendClientMessage(playerid,COLOR_GREY,"   Nemate dovoljno materijala za to oruzije!"); return 1; } }
else { SendClientMessage(playerid,COLOR_GREY,"Nepravilno ime oruzija!"); return 1; }
if (ProxDetectorS(5.0, playerid, giveplayerid))
{
GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
GetPlayerName(playerid, sendername, sizeof(sendername));
if(PlayerInfo[giveplayerid][pMaskuse] == 0)
{
format(string, sizeof(string), "Dali ste %s-u  %s sa %d municije, za %d materijala.", giveplayer,x_weapon, ammo[playerid], price[playerid]);
PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
SendClientMessage(playerid, GRAY, string);
}
else
{
format(string, sizeof(string), "Dali ste maskiranoj osobi  %s sa %d municije, za %d materijala.", x_weapon, ammo[playerid], price[playerid]);
PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
SendClientMessage(playerid, GRAY, string);
}
if(PlayerInfo[playerid][pMaskuse] == 0)
{
format(string, sizeof(string), "Primili ste %s sa %d municije od %s-a.", x_weapon, ammo[playerid], sendername);
SendClientMessage(giveplayerid, GRAY, string);
PlayerPlaySound(giveplayerid, 1052, 0.0, 0.0, 0.0);
}
else
{
format(string, sizeof(string), "Primili ste %s sa %d municije od maskirane osobe.", x_weapon, ammo[playerid]);
SendClientMessage(giveplayerid, GRAY, string);
PlayerPlaySound(giveplayerid, 1052, 0.0, 0.0, 0.0);
}
new gunname[100];
GetWeaponName(weapon[playerid], gunname, sizeof(gunname));
if(PlayerInfo[playerid][pMaskuse] == 0 && PlayerInfo[giveplayerid][pMaskuse] == 0)
{
format(string, sizeof(string), "* %s daje %s %s-u.", sendername, gunname,giveplayer);
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
}
if(PlayerInfo[playerid][pMaskuse] == 1 && PlayerInfo[giveplayerid][pMaskuse] == 1)
{
format(string, sizeof(string), "* Maskirana osoba daje %s maskiranoj osobi.", gunname);
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
}
if(PlayerInfo[playerid][pMaskuse] == 1 && PlayerInfo[giveplayerid][pMaskuse] == 0)
{
format(string, sizeof(string), "* Maskirana osoba daje %s %s-u.", gunname,giveplayer);
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
}
if(PlayerInfo[playerid][pMaskuse] == 0 && PlayerInfo[giveplayerid][pMaskuse] == 1)
{
format(string, sizeof(string), "* %s daje maskiranoj osobi.", sendername,gunname);
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
}
SafeJBC_GivePlayerWeapon(giveplayerid,weapon[playerid],ammo[playerid]);
PlayerInfo[playerid][pMats] -= price[playerid];
if(IsPlayerInAnyVehicle(playerid))
{
SetPlayerArmedWeapon(playerid, 0);
return 1;
}
}
else
{
SendClientMessage(playerid, COLOR_GRAD1, "   Predaleko ste.");
return 1;
}
}
else
{
format(string, sizeof(string), "   %d nije aktivan igrac.", giveplayerid);
SendClientMessage(playerid, COLOR_GRAD1, string);
}
}
else return SendClientMessage(playerid, COLOR_GRAD1, "Niste clan Mafije | Bande !"); }
return 1;
}

A treba mi da ubacim ovo. Da se samo na tom mestu moze praviti oruzije.
if(IsPlayerInRangeOfPoint(playerid,5.0,-1186.9907,-929.6783,71.1705));
Neke slike/video za lakse dobivanje pomoci(neobavezno): /

Neznas koju skriptu koristis a hteo bi da sredis nesto. Sta sve necu videti

South Europe al sam je editovao 90% ti je sad lakse?