[pomoc] /Sellbiz

Započeo [PAL]Emir, Oktobar 08, 2011, 11:49:21 PRE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

skripta koju koristim :glaxy state play
problem: kada ukucam /sellbiz pise prodali ste biz za 0$
dio skripte:
if(strcmp(cmd, "/sellbiz", true) == 0)
{
   if(IsPlayerConnected(playerid))
{
GetPlayerName(playerid, playername, sizeof(playername));
if(PlayerInfo[playerid][pPbiskey] == 255)
{
SendClientMessage(playerid, COLOR_WHITE, "Ne posedujete biznis.");
return 1;
}
if(PlayerInfo[playerid][pMarried] > 0)
   {
       SendClientMessage(playerid, COLOR_GREY, "   Vencani ste ,ne mozete prodati kucu !");
       return 1;
   }
if(PlayerInfo[playerid][pPbiskey] >= 100 && strcmp(playername, SBizzInfo[PlayerInfo[playerid][pPbiskey]-100][sbOwner], true) == 0)
{
new bouse = PlayerInfo[playerid][pPbiskey]-100;
SafeGivePlayerMoney(playerid,SBizzInfo[bouse][sbTill]);
SBizzInfo[bouse][sbLocked] = 0;
SBizzInfo[bouse][sbOwned] = 0;
GetPlayerName(playerid, sendername, sizeof(sendername));
strmid(SBizzInfo[bouse][sbOwner], "The State", 0, strlen("The State"), 255);
strmid(SBizzInfo[bouse][sbExtortion], "No-one", 0, strlen("No-one"), 255);
//ConsumingMoney[playerid] = 1;
PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
format(string, sizeof(string), "~w~Cestitamo~n~ Prodali ste posed za ~n~~g~$%d", SBizzInfo[bouse][sbTill]);
GameTextForPlayer(playerid, string, 10000, 3);
format(string1, sizeof(string), "[NA PRODAJU]\n$ %d",SBizzInfo[bouse][sbBuyPrice]);
sbizsale = Create3DTextLabel(string1,0x8361FFFF,SBizzInfo[bouse][sbEntranceX], SBizzInfo[bouse][sbEntranceY], SBizzInfo[bouse][sbEntranceZ]+1,15,0,1);
SBizzInfo[bouse][sbTill] = 0;
PlayerInfo[playerid][pPbiskey] = 255;
OnPropUpdate();
OnPlayerUpdate(playerid);
return 1;
}
if(strcmp(playername, BizzInfo[PlayerInfo[playerid][pPbiskey]][bOwner], true) == 0)
{
new bouse = PlayerInfo[playerid][pPbiskey];
BizzInfo[bouse][bLocked] = 0;
BizzInfo[bouse][bOwned] = 0;
GetPlayerName(playerid, sendername, sizeof(sendername));
strmid(BizzInfo[bouse][bOwner], "The State", 0, strlen("The State"), 255);
strmid(BizzInfo[bouse][bExtortion], "No-one", 0, strlen("No-one"), 255);
//ConsumingMoney[playerid] = 1;
SafeGivePlayerMoney(playerid,BizzInfo[bouse][bTill]);
PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
format(string, sizeof(string), "~w~Cestitamo~n~ Prodali ste posed za ~n~~g~$%d", BizzInfo[bouse][bTill]);
GameTextForPlayer(playerid, string, 10000, 3);
format(string1, sizeof(string), "[NA PRODAJU]\n$ %d",BizzInfo[bouse][bBuyPrice]);
bizsale = Create3DTextLabel(string1,0x8361FFFF,BizzInfo[bouse][bEntranceX], BizzInfo[bouse][bEntranceY], BizzInfo[bouse][bEntranceZ]+1,15,0,1);
BizzInfo[bouse][bTill] = 0;
PlayerInfo[playerid][pPbiskey] = 255;
OnPropUpdate();
OnPlayerUpdate(playerid);
return 1;
}
else
{
SendClientMessage(playerid, COLOR_WHITE, "Ne posedujete biznis.");
}
}
return 1;
}
Poslednja Izmena: Oktobar 08, 2011, 11:52:40 PRE PODNE od Emir_Odobasic

probaj IG /Edit price(cijena) 1000 pa /Sellbiz






CroHerze informacije



Nick(RP) : Lenart Wixxer
Nick(DM) : fearless
Rank : Mapping TEAM (RPG)
EX Rank : RPG/DM GameSage (1) | DM Administrator (3)
CH-DM : Ex.Skripter
CH-RP : Maper








BS i ostale informacije



Rank :
Profil : Click
XFire : fearlesscroherze Zanimanje : Skripter,Maper


LoL jbt lik hoce da to bude posto kupis toliko i prodas :P a ne da editujes to




Balkan Ulice RPG opis servera: Click



-Tutorial za mijesanje ID-ova na vozilima: Click