Detaljan opis problema😛a kad idem /sellbiz nece da mi da pare.+
Dio skripte:
if(strcmp(cmd, "/sellbiz", true) == 0)
{
if(IsPlayerConnected(playerid))
{
GetPlayerName(playerid, playername, sizeof(playername));
if(PlayerInfo == 255)
{
SendClientMessage(playerid, COLOR_WHITE, "Ne posjedujes Bizz.");
return 1;
}
if(PlayerInfo > 0)
{
SendClientMessage(playerid, COLOR_GREY, " Ozenjen si, nemozes prodati Bizz !");
return 1;
}
if(PlayerInfo >= 100 && strcmp(playername, SBizzInfo[PlayerInfo-100], true) == 0)
{
new bouse = PlayerInfo-100;
SafeGivePlayerMoney(playerid,SBizzInfo);
SBizzInfo = 1;
SBizzInfo = 0;
strmid(SBizzInfo, "The State", 0, strlen("The State"), 255);
strmid(SBizzInfo, "No-one", 0, strlen("No-one"), 255);
//ConsumingMoney = 1;
PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
format(string, sizeof(string), "~w~Cestitamo~n~ Prodali ste Bizz za ~n~~g~$%d", SBizzInfo);
GameTextForPlayer(playerid, string, 10000, 3);
SBizzInfo = 0;
PlayerInfo = 255;
OnPropUpdate(3);
OnPlayerUpdateEx(playerid);
OnPropTextdrawUpdate(3, bouse);
return 1;
}
if(strcmp(playername, BizzInfo[PlayerInfo], true) == 0)
{
new bouse = PlayerInfo;
BizzInfo = 1;
BizzInfo = 0;
strmid(BizzInfo, "The State", 0, strlen("The State"), 255);
strmid(BizzInfo, "No-one", 0, strlen("No-one"), 255);
//ConsumingMoney = 1;
SafeGivePlayerMoney(playerid,BizzInfo);
PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
format(string, sizeof(string), "~w~Cestitamo~n~ Prodali ste Bizz za ~n~~g~$%d", BizzInfo);
GameTextForPlayer(playerid, string, 10000, 3);
BizzInfo = 0;
PlayerInfo = 255;
OnPropUpdate(2);
OnPlayerUpdateEx(playerid);
OnPropTextdrawUpdate(2, bouse);
return 1;
}
else
{
SendClientMessage(playerid, COLOR_WHITE, "Ne posjedujes Bizz.");
}
}
new y, m, d;
new h,mi,s;
getdate(y,m,d);
gettime(h,mi,s);
format(string,sizeof(string), "(%d/%d/%d)[%d:%d:%d] %s -> /sellbiz",d,m,y,h,mi,s,sendername);
CommandLog(string);
return 1;
}Neke slike/video za lakse dobivanje pomoci(neobavezno):
