Skripta koju koristim:Balkan UnderGround
Detaljan opis problema:4 Erora
Dio skripte://
Neke slike/video za lakse dobivanje pomoci(neobavezno):
CroBos\Balkan Underground\gamemodes\balkan-underground.pwn(27883) : error 017: undefined symbol "JB_GetPlayerMoney"
CroBos\Balkan Underground\gamemodes\balkan-underground.pwn(27889) : error 017: undefined symbol "JB_GivePlayerMoney"
CroBos\Balkan Underground\gamemodes\balkan-underground.pwn(27891) : error 017: undefined symbol "TxtGov"
CroBos\Balkan Underground\gamemodes\balkan-underground.pwn(27892) : error 017: undefined symbol "Txtgov"
a da se možda postaju redovi od erora ??
/*------------------------------------------------------------------------------*/
if(strcmp(cmd, "/oglas", true) == 0 || strcmp(cmd, "/og", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if(gPlayerLogged[playerid] == 0)
{
SendClientMessage(playerid, LIGHTBLUE, " Niste prijavljeni (logirani) !");
return 1;
}
if(PlayerInfo[playerid][pLevel] < 7)
{
format(string, sizeof(string), "Morate Biti level 1 da bi ste dali [OGLAS]!");
SendClientMessage(playerid, LIGHTBLUE, string);
return 1;
}
GetPlayerName(playerid, sendername, sizeof(sendername));
new length = strlen(cmdtext);
while ((idx < length) && (cmdtext[idx] <= ' '))
{
idx++;
}
new offset = idx;
new result[64];
while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))
{
result[idx - offset] = cmdtext[idx];
idx++;
}
result[idx - offset] = EOS;
if(!strlen(result))
{
SendClientMessage(playerid, LIGHTBLUE, "Komanda: /oglas [Text]");
return 1;
}
if ((!adds) && (PlayerInfo[playerid][pAdmin] < 1))
{
format(string, sizeof(string), " Molimo pricekajte %d sekunda izmedu oglasa !", (addtimer/1000));
SendClientMessage(playerid, LIGHTBLUE, string);
return 1;
}
new payout = idx * 25;
if(JB_GetPlayerMoney(playerid) < payout)
{
format(string, sizeof(string), "Upotrebili ste %d slova, to kosta $%d, nemate dovoljno.", offset, payout);
SendClientMessage(playerid, LIGHTBLUE, string);
return 1;
}
JB_GivePlayerMoney(playerid, - payout);
format(string, sizeof(string), "[OGLAS]: %s \nKontakt: %s \nBroj: %d |", result, sendername,PlayerInfo[playerid][pPnumber]);
TextDrawShowForAll(TxtGov);
TextDrawSetString(Txtgov, string);
SetTimer("Hidegov", 30000, 0);
OOCNews(0x0087FFFF,string);
format(string, sizeof(string), "~p~Platili ste $%d~n~~w~Oglas se sastoji od: %d slova", payout, idx);
GameTextForPlayer(playerid, string, 5000, 5);
if (PlayerInfo[playerid][pAdmin] < 1){SetTimer("AddsOn", addtimer, 0);adds = 0;}
}
return 1;
}
Evo ti cjela komanda
Obrisi txtgov i ovo iznad toga,(ctrl+g onda linija koja ti pise tamo i izbrisi sve na toj liniji)
Citat: (CH)Trex poslato Jun 01, 2011, 13:24:00 POSLE PODNE
/*------------------------------------------------------------------------------*/
if(strcmp(cmd, "/oglas", true) == 0 || strcmp(cmd, "/og", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if(gPlayerLogged[playerid] == 0)
{
SendClientMessage(playerid, LIGHTBLUE, " Niste prijavljeni (logirani) !");
return 1;
}
if(PlayerInfo[playerid][pLevel] < 7)
{
format(string, sizeof(string), "Morate Biti level 1 da bi ste dali [OGLAS]!");
SendClientMessage(playerid, LIGHTBLUE, string);
return 1;
}
GetPlayerName(playerid, sendername, sizeof(sendername));
new length = strlen(cmdtext);
while ((idx < length) && (cmdtext[idx] <= ' '))
{
idx++;
}
new offset = idx;
new result[64];
while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))
{
result[idx - offset] = cmdtext[idx];
idx++;
}
result[idx - offset] = EOS;
if(!strlen(result))
{
SendClientMessage(playerid, LIGHTBLUE, "Komanda: /oglas [Text]");
return 1;
}
if ((!adds) && (PlayerInfo[playerid][pAdmin] < 1))
{
format(string, sizeof(string), " Molimo pricekajte %d sekunda izmedu oglasa !", (addtimer/1000));
SendClientMessage(playerid, LIGHTBLUE, string);
return 1;
}
new payout = idx * 25;
if(JB_GetPlayerMoney(playerid) < payout)
{
format(string, sizeof(string), "Upotrebili ste %d slova, to kosta $%d, nemate dovoljno.", offset, payout);
SendClientMessage(playerid, LIGHTBLUE, string);
return 1;
}
JB_GivePlayerMoney(playerid, - payout);
format(string, sizeof(string), "[OGLAS]: %s \nKontakt: %s \nBroj: %d |", result, sendername,PlayerInfo[playerid][pPnumber]);
TextDrawShowForAll(TxtGov);
TextDrawSetString(Txtgov, string);
SetTimer("Hidegov", 30000, 0);
OOCNews(0x0087FFFF,string);
format(string, sizeof(string), "~p~Platili ste $%d~n~~w~Oglas se sastoji od: %d slova", payout, idx);
GameTextForPlayer(playerid, string, 5000, 5);
if (PlayerInfo[playerid][pAdmin] < 1){SetTimer("AddsOn", addtimer, 0);adds = 0;}
}
return 1;
}
Evo ti cjela komanda
i sto cu s njom? Odakle ja znam kojo su koji redovi?
To JB_ ti je junkbuster obrisi to JB_