[AJUDA] POR FAVOR ME AJUDEM EMPRESA
#1

Entao gente quando eu tento comprar uma empresa aparece que eu ja tenho uma empresa sendo que eu nao tenho nenhuma sabem esplicar? COMO CONSERTO POR FAVOR AJUDEM


{
AddStaticPickup(1272, 2, BizzInfo[h][bEntranceX], BizzInfo[h][bEntranceY], BizzInfo[h][bEntranceZ]);
format(gstring, sizeof(gstring), "%s\nEsta empresa esta a venda\nValor: R$%d Nivel: %d\nPara comprar digite /compraremp",BizzInfo[h][bMessage],BizzInfo[h][bBuyPrice],BizzInfo[h][bLevelNeeded]);
BizzLabel[h] = Create3DTextLabel(gstring,COLOR_AZULBB,BizzInfo[h][bEntranceX], BizzInfo[h][bEntranceY], BizzInfo[h][bEntranceZ]+0.5,20.0,0);
}
if(BizzInfo[h][bOwned] == 1)
{
AddStaticPickup(1318, 2, BizzInfo[h][bEntranceX], BizzInfo[h][bEntranceY], BizzInfo[h][bEntranceZ]);
format(gstring, sizeof(gstring), "%s\nDono: %s\nExtorcao: %s\nEntrada: R$%d\nNivel: %d\nAperte Enter Para Entrar",BizzInfo[h][bMessage],BizzInfo[h][bOwner],BizzInfo[h][bExtortion],BizzInfo[h][bEntranceCost],BizzInfo[h][bLevelNeeded]);
BizzLabel[h] = Create3DTextLabel(gstring,COLOR_AZULBB,BizzInfo[h][bEntranceX], BizzInfo[h][bEntranceY], BizzInfo[h][bEntranceZ]+0.5,20.0,0);
}
}
for(new h = 0; h < sizeof(SBizzInfo); h++)
{
if(SBizzInfo[h][sbOwned] == 0)
{
AddStaticPickup(1272, 2, SBizzInfo[h][sbEntranceX], SBizzInfo[h][sbEntranceY], SBizzInfo[h][sbEntranceZ]);
format(gstring, sizeof(gstring), "%s\nEsta empresa esta a venda\nValor: R$%d Nivel: %d\nPara comprar digite /compraremp",SBizzInfo[h][sbMessage],SBizzInfo[h][sbBuyPrice],SBizzInfo[h][sbLevelNeeded]);
SBizzLabel[h] = Create3DTextLabel(gstring,COLOR_AZULBB,SBizzInfo[h][sbEntranceX], SBizzInfo[h][sbEntranceY], SBizzInfo[h][sbEntranceZ]+0.5,20.0,0);
}
if(SBizzInfo[h][sbOwned] == 1)
{
AddStaticPickup(1318, 2, SBizzInfo[h][sbEntranceX], SBizzInfo[h][sbEntranceY], SBizzInfo[h][sbEntranceZ]);
format(gstring, sizeof(gstring), "%s\nDono: %s\nExtorcao: %s\nEntrada: R$%d\nNivel: %d\nAperte Enter Para Entrar",SBizzInfo[h][sbMessage],SBizzInfo[h][sbOwner],SBizzInfo[h][sbExtortion],SBizzInfo[h][sbEntranceCost],SBizzInfo[h][sbLevelNeeded]);
SBizzLabel[h] = Create3DTextLabel(gstring,COLOR_AZULBB,SBizzInfo[h][sbEntranceX], SBizzInfo[h][sbEntranceY], SBizzInfo[h][sbEntranceZ]+0.5,20.0,0);
}
}
for(new h = 0; h < sizeof(fBizzInfo); h++)
{
if(fBizzInfo[h][fbOwned] == 0)
{
AddStaticPickup(1272, 2, fBizzInfo[h][fbEntranceX], fBizzInfo[h][fbEntranceY], fBizzInfo[h][fbEntranceZ]);
format(gstring, sizeof(gstring), "%s\nEsta empresa Free esta a venda\nValor: R$%d Nivel: %d\nPara comprar digite /comprarfree",fBizzInfo[h][fbMessage],fBizzInfo[h][fbBuyPrice],fBizzInfo[h][fbLevelNeeded]);
fBizzLabel[h] = Create3DTextLabel(gstring,COLOR_AZULBB,fBizzInfo[h][fbEntranceX], fBizzInfo[h][fbEntranceY], fBizzInfo[h][fbEntranceZ]+0.5,20.0,0);
}
if(fBizzInfo[h][fbOwned] == 1)
{
AddStaticPickup(1318, 2, fBizzInfo[h][fbEntranceX], fBizzInfo[h][fbEntranceY], fBizzInfo[h][fbEntranceZ]);
format(gstring, sizeof(gstring), "%s\nDono: %s\nExtorcao: %s\nEntrada: R$%d\nNivel: %d\nAperte Enter Para Entrar",fBizzInfo[h][fbMessage],fBizzInfo[h][fbOwner],fBizzInfo[h][fbExtortion],fBizzInfo[h][fbEntranceCost],fBizzInfo[h][fbLevelNeeded]);
fBizzLabel[h] = Create3DTextLabel(gstring,COLOR_AZULBB,fBizzInfo[h][fbEntranceX], fBizzInfo[h][fbEntranceY], fBizzInfo[h][fbEntranceZ]+0.5,20.0,0);



Uploaded with ImageShack.us
Reply
#2

Tente usar /venderfree. Ah, e use tambem o seu codigo em pawn([pawn*] e [/pawn*] so que sem o *.)
Reply
#3

Entao pessoal eu ja usei tambem o comando /venderfree
Reply
#4

Passa o comando /venderemp, /venderfree e /compraremp.
Reply
#5

if(strcmp(cmd, "/comprarfree", true) == 0)
{
if(IsPlayerConnected(playerid))
{
new Floatldposx, Floatldposy, Floatldposz;
GetPlayerName(playerid, playername, sizeof(playername));
GetPlayerPos(playerid, oldposx, oldposy, oldposz);
if(PlayerInfo[playerid][pPbiskey] != 255)
{
SendClientMessage(playerid, COLOR_GREY, " Vocк ja tem uma empresa, Digite /venderfree para comprar outra.");
return 1;
}
if(PlayerInfo[playerid][pVIP] != 0)
{
SendClientMessage(playerid, COLOR_GREY, " Vocк й VIP nгo pode comprar empresas de Free's!");
return 1;
}
for(new b = 0; b < sizeof(fBizzInfo); b++)
{
if(PlayerToPoint(2.0, playerid, fBizzInfo[b][fbEntranceX], fBizzInfo[b][fbEntranceY], fBizzInfo[b][fbEntranceZ]) && fBizzInfo[b][fbOwned] == 0)
{
if(PlayerInfo[playerid][pLevel] < fBizzInfo[b][fbLevelNeeded])
{
format(string, sizeof(string), "Vocк precisa ser nнvel %d para comprar essa empresa",fBizzInfo[b][fbLevelNeeded]);
SendClientMessage(playerid, COLOR_GRAD5, string);
return 1;
}
if(GetPlayerMoney(playerid) > fBizzInfo[b][fbBuyPrice])
{
PlayerInfo[playerid][pPbiskey] = b+200;
fBizzInfo[b][fbOwned] = 1;
fBizzInfo[b][fbLocked] = 0;
GetPlayerName(playerid, sendername, sizeof(sendername));
strmid(fBizzInfo[b][fbOwner], sendername, 0, strlen(sendername), 255);
GivePlayerMoney(playerid,-fBizzInfo[b][fbBuyPrice]);
PlayerPlayMusic(playerid);
SendClientMessage(playerid, COLOR_WHITE, "Parabens, Vocк comprou uma empresa.");
SendClientMessage(playerid, COLOR_WHITE, "Digite /ajudaemp para ver os comandos de sua empresa.");
Atualizar3Dtexts();
SaveFBizz();
return 1;
}
else
{
SendClientMessage(playerid, COLOR_GREY, "Vocк nгo tem grana suficiente");
return 1;
}
}
}
}
return 1;
}
if(strcmp(cmd, "/compraremp", true) == 0)
{
if(IsPlayerConnected(playerid))
{
new Floatldposx, Floatldposy, Floatldposz;
GetPlayerName(playerid, playername, sizeof(playername));
GetPlayerPos(playerid, oldposx, oldposy, oldposz);
if(PlayerInfo[playerid][pPbiskey] != 255)
{
SendClientMessage(playerid, COLOR_GREY, " Vocк ja tem uma empresa, Digite /venderemp para comprar outra.");
return 1;
}
if(PlayerInfo[playerid][pVIP] < 1)
{
SendClientMessage(playerid, COLOR_GREY, " Vocк nгo й VIP!");
return 1;
}
for(new b = 0; b < sizeof(SBizzInfo); b++)
{
if(PlayerToPoint(2.0, playerid, SBizzInfo[b][sbEntranceX], SBizzInfo[b][sbEntranceY], SBizzInfo[b][sbEntranceZ]) && SBizzInfo[b][sbOwned] == 0)
{
if(PlayerInfo[playerid][pLevel] < SBizzInfo[b][sbLevelNeeded])
{
format(string, sizeof(string), "Vocк precisa ser nнvel %d para comprar essa empresa",SBizzInfo[b][sbLevelNeeded]);
SendClientMessage(playerid, COLOR_GRAD5, string);
return 1;
}
if(GetPlayerMoney(playerid) > SBizzInfo[b][sbBuyPrice])
{
PlayerInfo[playerid][pPbiskey] = b+100;
SBizzInfo[b][sbOwned] = 1;
SBizzInfo[b][sbLocked] = 0;
GetPlayerName(playerid, sendername, sizeof(sendername));
strmid(SBizzInfo[b][sbOwner], sendername, 0, strlen(sendername), 255);
GivePlayerMoney(playerid,-SBizzInfo[b][sbBuyPrice]);
PlayerPlayMusic(playerid);
SendClientMessage(playerid, COLOR_WHITE, "Parabens, Vocк comprou uma empresa.");
SendClientMessage(playerid, COLOR_WHITE, "Digite /ajudaemp para ver os comandos de sua empresa.");
Atualizar3Dtexts();
OnPropUpdate();
return 1;
}
Reply
#6

OBRIGADO A TODOS JA RESOLVE
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)