Page 1 of 1

[PROBLEMA] Bizuri - SAMP

Posted: Mon Jan 23, 2012 9:39 am
by iShoot
Buna ziua Zonek!
Am intampinat o problema la bizuri pe gm'u meu.Intru in orice biz,ca e al meu,ca e al altcuiva, cu comanda /enter si nu se intampla nimic.Se face lag si dupa imi apare un fel de restart doar ca scrie "Lost connection to the server",dupa se da rr si..."Server didn't respond".
Pe host pe linux trb sa dau rr ca sa mearga iar sv iar in comp la mn,pe windows,se stinge singur samp-server,care imi tine deschis serverul.In server log,ultima "linie" care apare e ca am platit acei bani pentru a intra in biz...
RoberTo,ti-am zis pe mess ce gm folosesc,presupun ca tu esti cam singurul care raspunde aici ,nu?
Multumesc:D

Re: [PROBLEMA] Bizuri - SAMP

Posted: Mon Jan 23, 2012 10:28 am
by RoberTo
ne poti arata comanda /enter ?

Re: [PROBLEMA] Bizuri - SAMP

Posted: Mon Jan 23, 2012 6:30 pm
by iShoot
Comanda /enter ptr bizz /casa ,nu?:D sa nu uiti,doar la bizuri pica serverul cand dau /enter ,nu si la case
if(strcmp(cmd, "/enter", true) == 0)
{
if(IsPlayerConnected(playerid))
{
for(new i = 0; i < sizeof(HouseInfo); i++)
{
if (PlayerToPoint(3, playerid,HouseInfo[hEntrancex], HouseInfo[hEntrancey], HouseInfo[hEntrancez]))
{
//printf("Found House :%d",i);
if(PlayerInfo[playerid][pPhousekey] == i || HouseInfo[hLock] == 0)
{
SetPlayerInterior(playerid,HouseInfo[hInt]);
SetPlayerVirtualWorld(playerid,HouseInfo[hWorld]);
SetPlayerPos(playerid,HouseInfo[hExitx],HouseInfo[hExity],HouseInfo[hExitz]);
GameTextForPlayer(playerid, "~w~Welcome Home", 5000, 1);
PlayerInfo[playerid][pInt] = HouseInfo[hInt];
PlayerInfo[playerid][pLocal] = i;
HouseEntered[playerid] = i;
// HouseID[MAX_PLAYERS] = h;
}
else
{
GameTextForPlayer(playerid, "~r~Locked", 5000, 1);
}
}
}
for(new i = 0; i < sizeof(BizzInfo); i++)
{
if (PlayerToPoint(3, playerid,BizzInfo[i][bEntranceX], BizzInfo[i][bEntranceY], BizzInfo[i][bEntranceZ]))
{
//printf("Found House :%d",i);
if(!IsACop(playerid) && i == 3)
{
SendClientMessage(playerid, COLOR_GREY, " Cops only !");
return 1;
}
if(PlayerInfo[playerid][pPbiskey] == i || GetPlayerMoney(playerid) >= BizzInfo[i][bEntranceCost])
{
if(PlayerInfo[playerid][pPbiskey] != i)
{
if(BizzInfo[i][bLocked] == 1)
{
GameTextForPlayer(playerid, "~r~Closed", 5000, 1);
return 1;
}
if(BizzInfo[i][bProducts] == 0)
{
GameTextForPlayer(playerid, "~r~Out Of Stock", 5000, 1);
return 1;
}
GivePlayerMoney(playerid,-BizzInfo[i][bEntranceCost]);
format(string, sizeof(string), "~r~-$%d~n~~w~type /exit~n~to get out", BizzInfo[i][bEntranceCost]);
BizzInfo[i][bTill] += BizzInfo[i][bEntranceCost];
ExtortionBiz(i, BizzInfo[i][bEntranceCost]);
BizzInfo[i][bProducts]--;
OnPropUpdate();
GameTextForPlayer(playerid, string, 5000, 3);
}
SetPlayerInterior(playerid,BizzInfo[i][bInterior]);
SetPlayerPos(playerid,BizzInfo[i][bExitX],BizzInfo[i][bExitY],BizzInfo[i][bExitZ]);
PlayerInfo[playerid][pInt] = BizzInfo[i][bInterior];
PlayerInfo[playerid][pLocal] = i+99;
new dood[MAX_PLAYER_NAME];
GetPlayerName(playerid, dood, sizeof(dood));
format(string, sizeof(string), "%s payed $%d to enter biz %d", dood, BizzInfo[i][bEntranceCost], i);
printf("%s", string);
PayLog(string);
//PlayerInfo[playerid][pLocal] = i;
}
else
{
GameTextForPlayer(playerid, "~r~You dont have the cash", 5000, 1);
}
}
}
for(new i = 0; i < sizeof(SBizzInfo); i++)
{
if (PlayerToPoint(3, playerid,SBizzInfo[i][sbEntranceX], SBizzInfo[i][sbEntranceY], SBizzInfo[i][sbEntranceZ]))
{
if(PlayerInfo[playerid][pPbiskey] == i || GetPlayerMoney(playerid) >= SBizzInfo[i][sbEntranceCost])
{
if(PlayerInfo[playerid][pPbiskey] != i)
{
if(SBizzInfo[i][sbLocked] == 1)
{
GameTextForPlayer(playerid, "~r~Closed", 5000, 1);
return 1;
}
if(SBizzInfo[i][sbProducts] == 0)
{
GameTextForPlayer(playerid, "~r~Out Of Stock", 5000, 1);
return 1;
}
if(i == 10)
{
PaintballPlayers ++;
PlayerPaintballing[playerid] = 1;
new rand = random(sizeof(PaintballSpawns));
SetPlayerPos(playerid, PaintballSpawns[rand][0], PaintballSpawns[rand][1], PaintballSpawns[rand][2]);
TogglePlayerControllable(playerid, 0);
}
else if(i == 11)
{
PlayerKarting[playerid] = 1;
SendClientMessage(playerid, TEAM_GROVE_COLOR, "You can now parcipitate in a Karting Race, grab a Kart.");
}
else
{
return 1;
}
GivePlayerMoney(playerid,-SBizzInfo[i][sbEntranceCost]);
gSpentCash[playerid] = GetPlayerMoney(playerid);
SBizzInfo[i][sbProducts]--;
SBizzInfo[i][sbTill] += SBizzInfo[i][sbEntranceCost];
ExtortionSBiz(i, SBizzInfo[i][sbEntranceCost]);
new dood[MAX_PLAYER_NAME];
GetPlayerName(playerid, dood, sizeof(dood));
format(string, sizeof(string), "%s payed $%d to enter sbiz %d", dood, SBizzInfo[i][sbEntranceCost], i);
printf("%s", string);
PayLog(string);
OnPropUpdate();
}
}
else
{
GameTextForPlayer(playerid, "~r~You dont have the cash", 5000, 1);
}
}
}

Re: [PROBLEMA] Bizuri - SAMP

Posted: Mon Jan 23, 2012 8:50 pm
by RoberTo
La bizz sau la sbizz ?

bizz -> cele cu interiore
sbiz -> fara interioare

Re: [PROBLEMA] Bizuri - SAMP

Posted: Mon Jan 23, 2012 9:09 pm
by iShoot
pai...dau /enter de exemplu la gsls sau la banca...deci la bizz,cu interioare.:D

Re: [PROBLEMA] Bizuri - SAMP

Posted: Mon Jan 23, 2012 10:15 pm
by RoberTo
incerca sa iti faci un sistem de debug sa vezi unde pica serverul la acea comanda !