nije ti dobra komanda...
if(strcmp(cmd, "/kupifirmu", true) == 0)
{
if(IsPlayerConnected(playerid))
{
new Float:oldposx, Float:oldposy, Float:oldposz;
GetPlayerName(playerid, playername, sizeof(playername));
GetPlayerPos(playerid, oldposx, oldposy, oldposz);
if(PlayerInfo != 255)
{
SendClientMessage(playerid, COLOR_WHITE, " Vec posjedujete biznis, kucajte /prodajfirmu ako zelite da kupite ovaj.");
return 1;
}
for(new b = 0; b < sizeof(SBizzInfo); b++)
{
if(PlayerToPoint(2.0, playerid, SBizzInfo, SBizzInfo, SBizzInfo) && SBizzInfo == 0)
{
if(PlayerInfo < SBizzInfo)
{
format(string, sizeof(string), "Morate biti lvl %d da biste kupili to",SBizzInfo);
SendClientMessage(playerid, COLOR_GRAD5, string);
return 1;
}
if(GetPlayerMoney(playerid) > SBizzInfo)
{
Delete3DTextLabel(Text3D:sbizsale);
PlayerInfo = b+100;
SBizzInfo = 1;
GetPlayerName(playerid, sendername, sizeof(sendername));
strmid(SBizzInfo, sendername, 0, strlen(sendername), 255);
SafeJBC_GivePlayerMoney(playerid,-SBizzInfo);
SendClientMessage(playerid, COLOR_WHITE, "Cestitamo vam na novom biznisu.");
SendClientMessage(playerid, COLOR_WHITE, "Kucajte /help da pogledate pomoc oko biznisa.");
Delete3DTextLabel(Text3D:sbizsale);
DateProp(playerid);
OnPropUpdate();
OnPropTextdrawUpdate()
OnPlayerUpdateCustom(playerid);
return 1;
}
else
{
SendClientMessage(playerid, COLOR_WHITE, "Nemate dovoljno novca da kupite to");
return 1;
}
}
}
for(new b = 0; b < sizeof(BizzInfo); b++)
{
if(PlayerToPoint(2.0, playerid, BizzInfo, BizzInfo, BizzInfo) && BizzInfo == 0)
{
if(PlayerInfo < BizzInfo)
{
format(string, sizeof(string), "Morate biti level %d da kupite to",BizzInfo);
SendClientMessage(playerid, COLOR_GRAD5, string);
return 1;
}
if(GetPlayerMoney(playerid) > BizzInfo)
{
Delete3DTextLabel(Text3D:bizsale);
PlayerInfo = b;
BizzInfo = 1;
GetPlayerName(playerid, sendername, sizeof(sendername));
strmid(BizzInfo, sendername, 0, strlen(sendername), 255);
SafeJBC_GivePlayerMoney(playerid,-BizzInfo);
SetPlayerInterior(playerid,BizzInfo);
PlayerInfo = BizzInfo;
JBC_SetPlayerPos(playerid,BizzInfo,BizzInfo,BizzInfo);
GameTextForPlayer(playerid, "~w~Dobrodosli~n~Mozete izaci u svakom trenutku ako dodjete do vrata i kucate /exit", 5000, 3);
PlayerInfo = BizzInfo;
PlayerInfo = b ;
SendClientMessage(playerid, COLOR_WHITE, "Cestitamo vam na novom biznisu.");
SendClientMessage(playerid, COLOR_WHITE, "Kucajte /help da pogledate pomoc oko biznisa.");
Delete3DTextLabel(Text3D:bizsale);
DateProp(playerid);
OnPropUpdate();
OnPlayerUpdateCustom(playerid);
return 1;
}
else
{
SendClientMessage(playerid, COLOR_WHITE, "Nemate dovoljno novca da kupite to");
return 1;
}
}
}
}
return 1;
}
evo ti iz mog moda pa ti edituj errore neznam kako ti je definirano sve oko biza..