- 0
Problema banca,biz..
-
Similar Content
-
Recently Browsing 0 members
- No registered users viewing this page.
We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.
Question
Bogdan's
Problema intalnita (descriere): Salut deci am o problema la bizul bancii si anume: Intru in banca,si cand apas F sau ENTER sa ies ma scoate pentru o secunda dupa care revin inapoi.
Ero(area / rile) / warning-(ul / urile): Nu am.
Liniile de cod / sursa / script-ul(obligatoriu):
if(newkeys==KEY_SECONDARY_ATTACK) { 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) { SetPlayerVirtualWorld(playerid, i); SetPlayerInterior(playerid,HouseInfo[hInt]); SetPlayerPos(playerid,HouseInfo[hExitx],HouseInfo[hExity],HouseInfo[hExitz]); GameTextForPlayer(playerid, "~w~Bun venit acasa", 5000, 1); PlayerInfo[playerid][pInt] = HouseInfo[hInt]; PlayerInfo[playerid][pLocal] = i+500; return 1; } else { GameTextForPlayer(playerid, "~r~INCHIS", 5000, 1); return 1; } } } for(new i = 0; i < sizeof(BizzInfo); i++) { if (PlayerToPoint(3, playerid,BizzInfo[bEntranceX], BizzInfo[bEntranceY], BizzInfo[bEntranceZ])) { //printf("Found House :%d",i); if(PlayerInfo[playerid][pPbiskey] == i || GetPlayerMoney(playerid) >= BizzInfo[bEntranceCost]) { if(PlayerInfo[playerid][pPbiskey] != i) { if(BizzInfo[bLocked] == 1) { GameTextForPlayer(playerid, "~r~INCHIS", 5000, 1); return 1; } if(i == 6 || i == 7 || i == 8) { OnPlayerEnterFood(playerid, 3) SetPlayerInterior(playerid,BizzInfo[bInterior]); SetPlayerPos(playerid,BizzInfo[bExitX],BizzInfo[bExitY],BizzInfo[bExitZ]); PlayerInfo[playerid][pInt] = BizzInfo[bInterior]; PlayerInfo[playerid][pLocal] = i+99; SetPlayerVirtualWorld(playerid, i+99); format(string, sizeof(string), "Apasa ENTER~n~pentru a iesi"); GameTextForPlayer(playerid, string, 5000, 3); OnPropUpdate(); return 1; } if(i == 25) { OnPlayerEnterFood(playerid, 2) SetPlayerInterior(playerid,BizzInfo[25][bInterior]); SetPlayerPos(playerid,BizzInfo[25][bExitX],BizzInfo[25][bExitY],BizzInfo[25][bExitZ]); PlayerInfo[playerid][pInt] = BizzInfo[25][bInterior]; PlayerInfo[playerid][pLocal] = 25+99; SetPlayerVirtualWorld(playerid, 25+99); format(string, sizeof(string), "Apasa ENTER~n~pentru a iesi"); GameTextForPlayer(playerid, string, 5000, 3); OnPropUpdate(); return 1; } if(i == 2) { OnPlayerEnterFood(playerid, 1) SetPlayerInterior(playerid,BizzInfo[2][bInterior]); SetPlayerPos(playerid,BizzInfo[2][bExitX],BizzInfo[2][bExitY],BizzInfo[2][bExitZ]); PlayerInfo[playerid][pInt] = BizzInfo[2][bInterior]; PlayerInfo[playerid][pLocal] = 2+99; SetPlayerVirtualWorld(playerid, 2+99); format(string, sizeof(string), "Apasa ENTER~n~pentru a iesi"); GameTextForPlayer(playerid, string, 5000, 3); OnPropUpdate(); return 1; } if(i == 24) { SetPlayerInterior(playerid,BizzInfo[bInterior]); SetPlayerPos(playerid,BizzInfo[bExitX],BizzInfo[bExitY],BizzInfo[bExitZ]); PlayerInfo[playerid][pInt] = BizzInfo[bInterior]; PlayerInfo[playerid][pLocal] = i+99; SetPlayerVirtualWorld(playerid, i+99); format(string, sizeof(string), "Apasa ENTER~n~pentru a iesi"); GameTextForPlayer(playerid, string, 5000, 3); return 1; } if(i == 5 || i == 14 || i == 15 || i == 9 || i == 10 || i == 11 || i == 12 || i == 13 || i == 16 || i == 17 || i == 19 || i == 20 || i == 21 || i == 22 || i == 23) { SetPlayerInterior(playerid,BizzInfo[bInterior]); SetPlayerPos(playerid,BizzInfo[bExitX],BizzInfo[bExitY],BizzInfo[bExitZ]); PlayerInfo[playerid][pInt] = BizzInfo[bInterior]; PlayerInfo[playerid][pLocal] = i+99; SetPlayerVirtualWorld(playerid, i+99); format(string, sizeof(string), "Apasa ENTER~n~pentru a iesi"); GameTextForPlayer(playerid, string, 5000, 3); } SafeGivePlayerMoney(playerid,-BizzInfo[bEntranceCost]); format(string, sizeof(string), "~r~-$%d~n~~w~Apasa ENTER~n~pentru a iesi", BizzInfo[bEntranceCost]); BizzInfo[bTill] += BizzInfo[bEntranceCost]; OnPropUpdate(); GameTextForPlayer(playerid, string, 5000, 3); } if(i == 6 || i == 7 || i == 8) { OnPlayerEnterFood(playerid, 3) SetPlayerInterior(playerid,BizzInfo[bInterior]); SetPlayerPos(playerid,BizzInfo[bExitX],BizzInfo[bExitY],BizzInfo[bExitZ]); PlayerInfo[playerid][pInt] = BizzInfo[bInterior]; PlayerInfo[playerid][pLocal] = i+99; SetPlayerVirtualWorld(playerid, i+99); format(string, sizeof(string), "Apasa ENTER~n~pentru a iesi"); GameTextForPlayer(playerid, string, 5000, 3); OnPropUpdate(); return 1; } if(i == 25) { OnPlayerEnterFood(playerid, 2) SetPlayerInterior(playerid,BizzInfo[25][bInterior]); SetPlayerPos(playerid,BizzInfo[25][bExitX],BizzInfo[25][bExitY],BizzInfo[25][bExitZ]); PlayerInfo[playerid][pInt] = BizzInfo[25][bInterior]; PlayerInfo[playerid][pLocal] = 25+99; SetPlayerVirtualWorld(playerid, 25+99); format(string, sizeof(string), "Scrie /exit~n~pentru a iesi"); GameTextForPlayer(playerid, string, 5000, 3); OnPropUpdate(); return 1; } if(i == 2) { OnPlayerEnterFood(playerid, 1) SetPlayerInterior(playerid,BizzInfo[2][bInterior]); SetPlayerPos(playerid,BizzInfo[2][bExitX],BizzInfo[2][bExitY],BizzInfo[2][bExitZ]); PlayerInfo[playerid][pInt] = BizzInfo[2][bInterior]; PlayerInfo[playerid][pLocal] = 2+99; SetPlayerVirtualWorld(playerid, 2+99); format(string, sizeof(string), "Scrie /exit~n~pentru a iesi"); GameTextForPlayer(playerid, string, 5000, 3); OnPropUpdate(); return 1; } if(i == 5 || i == 14 || i == 15 || i == 9 || i == 10 || i == 11 || i == 12 || i == 13 || i == 16 || i == 17 || i == 19 || i == 20 || i == 21 || i == 22 || i == 23 || i == 24) { SetPlayerInterior(playerid,BizzInfo[bInterior]); SetPlayerPos(playerid,BizzInfo[bExitX],BizzInfo[bExitY],BizzInfo[bExitZ]); PlayerInfo[playerid][pInt] = BizzInfo[bInterior]; PlayerInfo[playerid][pLocal] = i+99; SetPlayerVirtualWorld(playerid, i+99); format(string, sizeof(string), "Apasa ENTER~n~pentru a iesi"); GameTextForPlayer(playerid, string, 5000, 3); OnPropUpdate(); return 1; } SetPlayerInterior(playerid,BizzInfo[bInterior]); SetPlayerPos(playerid,BizzInfo[bExitX],BizzInfo[bExitY],BizzInfo[bExitZ]); PlayerInfo[playerid][pInt] = BizzInfo[bInterior]; PlayerInfo[playerid][pLocal] = i+99; SetPlayerVirtualWorld(playerid, i+99); new dood[MAX_PLAYER_NAME]; GetPlayerName(playerid, dood, sizeof(dood)); format(string, sizeof(string), "%s a platit $%d pentru a intra la %d", dood, BizzInfo[bEntranceCost], i); printf("%s", string); PayLog(string); //PlayerInfo[playerid][pLocal] = i; return 1; } else { GameTextForPlayer(playerid, "~r~Nu ai bani", 5000, 1); return 1; } } } for(new i = 0; i < sizeof(SBizzInfo); i++) { if (PlayerToPoint(3, playerid,SBizzInfo[sbEntranceX], SBizzInfo[sbEntranceY], SBizzInfo[sbEntranceZ])) { if(PlayerInfo[playerid][pPbiskey] == i || GetPlayerMoney(playerid) >= SBizzInfo[sbEntranceCost]) { if(PlayerInfo[playerid][pPbiskey] != i) { if(SBizzInfo[sbLocked] == 1) { GameTextForPlayer(playerid, "~r~Inchis", 5000, 1); return 1; } SafeGivePlayerMoney(playerid,-SBizzInfo[sbEntranceCost]); gSpentCash[playerid] = GetPlayerMoney(playerid); SBizzInfo[sbTill] += SBizzInfo[sbEntranceCost]; new dood[MAX_PLAYER_NAME]; GetPlayerName(playerid, dood, sizeof(dood)); format(string, sizeof(string), "%s a platit $%d pentru a intra la %d", dood, SBizzInfo[sbEntranceCost], i); printf("%s", string); PayLog(string); OnPropUpdate(); return 1; } } else { GameTextForPlayer(playerid, "~r~Nu ai bani", 5000, 1); return 1; } } } } }Imagini / Video (optional):-
Ati incercat sa rezolvati singur?:Da.
12 answers to this question
Recommended Posts