Jump to content

SteRiO

Membru
  • Posts

    19
  • Joined

  • Last visited

SteRiO's Achievements

Explorer

Explorer (4/14)

  • First Post
  • Collaborator
  • Conversation Starter
  • Week One Done
  • One Month Later

Recent Badges

0

Reputation

  1. imi da erorile :E:\TOT\Íîâàÿ ïàïêà\gafadas\gamemodes\GamesLux2.0.pwn(9028) : error 017: undefined symbol "i" E:\TOT\Íîâàÿ ïàïêà\gafadas\gamemodes\GamesLux2.0.pwn(9037) : error 017: undefined symbol "i" [pawn] if(dialogid == 1244) { if(response) { if (gPlayerAccount[playerid] != 0) { new playersip[24]; GetPlayerIp(i,playersip, sizeof(playersip)); gPlayerAccount[playerid] = 1; new loginstring[128]; new loginname[64]; SCM(playerid, COLOR_GREY, " "); SCM(playerid, COLOR_GREY, " "); if(IsPlayerNPC(playerid)) return 1; GetPlayerName(playerid,loginname,sizeof(loginname)); format(loginstring,sizeof(loginstring),""wh"Bine ai venit, {6790BE}%s"wh" .Tasteaza parola pentru a te loga:\n\n"wh"IP-ul tau: "color_yellow"%s",loginname,playersip); ShowPlayerDialog(i,12346,DIALOG_STYLE_INPUT,"Login",loginstring,"Login","Exit"); }[/pawn]
  2. [pawn] if(HouseInfo[h][hOwned] == 1) { //CreateMapIcon(32, 0, HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez]); if(HouseInfo[h][hRentabil] == 0) { format(string, sizeof(string), ""color_cyan"Owned"wh": "color_yellow"%s\n"color_cyan"Level"wh": %d",HouseInfo[h][hOwner],HouseInfo[h][hLevel]); house1[h] = Create3DTextLabel(string,COLOR_YELLOW, HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], 0.8+HouseInfo[h][hEntrancez],10.0,0); } if(HouseInfo[h][hRentabil] == 1) { format(string, sizeof(string), ""color_cyan"Owned"wh": "color_yellow"%s\n"color_cyan"Rent"wh": "color_green"%d$ \n"color_cyan"Level"wh": %d\n"color_cyan"Type "color_yellow"/rentroom\n"color_cyan"To rent a room",HouseInfo[h][hOwner],HouseInfo[h][hRent],HouseInfo[h][hLevel]); house1[h] = Create3DTextLabel(string,COLOR_YELLOW, HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], 0.8+HouseInfo[h][hEntrancez],10.0,0); } } if(HouseInfo[h][hOwned] == 0) { format(strings2, sizeof(strings2), ""color_cyan"Casa de vanzare !\n"color_cyan"Discription"wh": %s\n"color_cyan"Cost"wh": "color_green"%d$\n"color_cyan"Level"wh": %d\n"color_cyan"ID House"wh": %d\n"color_cyan"For buy type "color_yellow"/buyhouse",HouseInfo[h][hDiscription],HouseInfo[h][hValue],HouseInfo[h][hLevel],h); house1[h] = Create3DTextLabel(strings2,COLOR_YELLOW, HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], 0.8+HouseInfo[h][hEntrancez],10.0,0,1); housepickup1[h] = CreatePickup(1273, 23, HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez]); } }[/pawn] [pawn] if(HouseInfo[h][hOwned] == 1) { if(HouseInfo[h][hRentabil] == 0) { Delete3DTextLabel(house1[h]); format(string, sizeof(string), ""color_cyan"Owned"wh": "color_yellow"%s\n"color_cyan"Level"wh": %d",HouseInfo[h][hOwner],HouseInfo[h][hLevel]); house1[h] = Create3DTextLabel(string,COLOR_YELLOW, HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], 0.8+HouseInfo[h][hEntrancez],10.0,0); } if(HouseInfo[h][hRentabil] == 1) { Delete3DTextLabel(house1[h]); format(string, sizeof(string), ""color_cyan"Owned"wh": "color_yellow"%s\n"color_cyan"Rent"wh": "color_green"%d$ \n"color_cyan"Level"wh": %d\n"color_cyan"Type "color_yellow"/rentroom\n"color_cyan"To rent a room",HouseInfo[h][hOwner],HouseInfo[h][hRent],HouseInfo[h][hLevel]); house1[h] = Create3DTextLabel(string,COLOR_YELLOW, HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], 0.8+HouseInfo[h][hEntrancez],10.0,0); } return 1; } } if(HouseInfo[h][hOwned] == 0) { Delete3DTextLabel(house1[h]); format(string, sizeof(string), ""color_cyan"Casa de vanzare !\n"color_cyan"Discription"wh": %s\n"color_cyan"Cost"wh": "color_green"%d$\n"color_cyan"Level"wh": %d\n"color_cyan"To buy this house\ntype "color_yellow"/buyhouse",HouseInfo[h][hDiscription],HouseInfo[h][hValue],HouseInfo[h][hLevel]); house1[h] = Create3DTextLabel(string,COLOR_YELLOW, HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], 0.8+HouseInfo[h][hEntrancez],10.0,0); } } } for(new h = 0; h < sizeof(BizzInfo); h++) {[/pawn] ajutatima va rog
  3. mie imi scrie ca am copiato...
  4. se face bug.... 1/5 scrii o comanda si iti apare ca tu nu esti la spalatorie
  5. SteRiO

    case

    am o intrebare faci prin MTA interiorul la casa si cum pui casa in gm ajutatima va rog
  6. SteRiO

    ban pe timp

    pai cum sa dau de el?
  7. SteRiO

    Payday

    cand intru pe server se da de 2-3 ori payday singur si dupa nu se mai da trebue eu sa dau /payday de la ce poate sa fie [pawn]//=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=PayDay=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= public PayDay() { new string[128]; new account,interest; new rent = 0; for(new i = 0; i < MAX_PLAYERS; i++) { if(IsPlayerConnected(i)) { if(WatchingTV == 0) { if(PlayerInfo[pLevel] > 0) { if(MoneyMessage==1) { SCM(i, COLOR_LIGHTRED, "You failed to pay your debt, Jail time."); GameTextForPlayer(i, "~r~Busted!", 2000, 1); SetPlayerInterior(i, 5); SetPlayerPos(i, 322.9037,305.5694,999.1484); PlayerInfo[pJailed] = 1; ResetPlayerWeapons(i); WantedPoints = 0; SetPlayerSkin(i, 62); PlayerInfo[pMats] = 0; PlayerInfo[pJailTime] = 240; format(string, sizeof(string), "You are jailed for %d seconds. Bail: Unable", PlayerInfo[pJailTime]); SCM(i, COLOR_LIGHTBLUE, string); } new money=GetPlayerMoney(i); new playername2[MAX_PLAYER_NAME]; GetPlayerName(i, playername2, sizeof(playername2)); account = PlayerInfo[pAccount]; new key = PlayerInfo[pPhousekey]; if(key != 255) { rent = HouseInfo[key][hRent]; if(strcmp(playername2, HouseInfo[key][hOwner], true) == 0) { rent = 0; } else if(rent > GetPlayerMoney(i)) { PlayerInfo[pPhousekey] = 255; SendClientMessage(i, COLOR_WHITE, "You have been evicted."); rent = 0; } HouseInfo[key][hTakings] = HouseInfo[key][hTakings]+rent; } new tmpintrate; if (key != 255 && strcmp(playername2, HouseInfo[key][hOwner], true) == 0) { if(PlayerInfo[pDonateRank] > 0) { tmpintrate = intrate+4; } else { tmpintrate = intrate+2; }//HouseInfo[key][hLevel] } else { if(PlayerInfo[pDonateRank] > 0) { tmpintrate = 3; } else { tmpintrate = 1; } } new h,mi; gettime(h,mi); if(PlayerInfo[pPayDay] >= 0) { Tax += TaxValue;//Should work for every player online PlayerInfo[pAccount] -= TaxValue; if(PlayerInfo[pDonateRank] > 0) { new bonus = PlayerInfo[pPayCheck] / 2; PlayerInfo[pPayCheck] += bonus; } new checks = PlayerInfo[pPayCheck]; new ebill = (PlayerInfo[pAccount]/10000)*(PlayerInfo[pLevel]); ConsumingMoney = 1; GivePlayerMoney(i, checks); if(PlayerInfo[pAccount] > 0) { PlayerInfo[pAccount] -= ebill; SBizzInfo[4][sbTill] += ebill; } else { ebill = 0; } interest = (PlayerInfo[pAccount]/1000)*(tmpintrate); PlayerInfo[pExp]++; PlayerPlayMusic(i); PlayerInfo[pAccount] = account+interest; new str[1024]; SCM(i, COLOR_WHITE, "|___ BANK STATMENT ___|"); format(string, sizeof(string), " Paycheck: $%d Tax Money: -$%d", checks, TaxValue); SCM(i, COLOR_GRAD1, string); if(PlayerInfo[pPhousekey] != 255 || PlayerInfo[pPbiskey] != 255) { format(string, sizeof(string), " Electricity Bill: -$%d", ebill); SCM(i, COLOR_GRAD1, string); } format(string, sizeof(string), " Balance: $%d", account); SCM(i, COLOR_GRAD1, string); format(string, sizeof(string), " Interest Rate: 0.%d percent",tmpintrate); SCM(i, COLOR_GRAD2, string); format(string, sizeof(string), " Interest Gained $%d", interest); SCM(i, COLOR_GRAD3, string); SCM(i, COLOR_GRAD4, "|--------------------------------------|"); format(string, sizeof(string), " New Balance: $%d", PlayerInfo[pAccount]); SCM(i, COLOR_GRAD5, string); format(string, sizeof(string), " Rent: -$%d", rent); SCM(i, COLOR_GRAD5, string); format(string, sizeof(string), "~y~PayDay~n~~w~Paycheck"); GameTextForPlayer(i, string, 5000, 1); PlayerInfo[pPayDay] = 0; PlayerInfo[pPayCheck] = 0; PlayerInfo[pConnectTime] += 1; PlayerInfo[pRob] += 2; if(PlayerInfo[pDonateRank] > 0) { PlayerInfo[pPayDayHad] += 1; if(PlayerInfo[pPayDayHad] >= 5) { PlayerInfo[pExp]++; PlayerInfo[pPayDayHad] = 0; } } } else { SCM(i, COLOR_LIGHTRED, "* You haven't played long enough to obtain a PayDay."); } } } else { SCM(i, COLOR_LIGHTRED, "Nu ai primit payday pentru ca ai stat cu tv."); } } } return 1; } strtok(const string[], &index) { new length = strlen(string); while ((index < length) && (string[index] <= ' ')) { index++; } new offset = index; new result[20]; while ((index < length) && (string[index] > ' ') && ((index - offset) < (sizeof(result) - 1))) { result[index - offset] = string[index]; index++; } result[index - offset] = EOS; return result; }[/pawn] sau [pawn]//=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=PayDay=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= public PayDay() { new string[128]; new account,interest; new rent = 0; for(new i = 0; i < MAX_PLAYERS; i++) { if(IsPlayerConnected(i)) { if(WatchingTV == 0) { if(PlayerInfo[pLevel] > 0) { if(MoneyMessage==1) { SCM(i, COLOR_LIGHTRED, "You failed to pay your debt, Jail time."); GameTextForPlayer(i, "~r~Busted!", 2000, 1); SetPlayerInterior(i, 5); SetPlayerPos(i, 322.9037,305.5694,999.1484); PlayerInfo[pJailed] = 1; ResetPlayerWeapons(i); WantedPoints = 0; SetPlayerSkin(i, 62); PlayerInfo[pMats] = 0; PlayerInfo[pJailTime] = 240; format(string, sizeof(string), "You are jailed for %d seconds. Bail: Unable", PlayerInfo[pJailTime]); SCM(i, COLOR_LIGHTBLUE, string); } new money=GetPlayerMoney(i); new playername2[MAX_PLAYER_NAME]; GetPlayerName(i, playername2, sizeof(playername2)); account = PlayerInfo[pAccount]; new key = PlayerInfo[pPhousekey]; if(key != 255) { rent = HouseInfo[key][hRent]; if(strcmp(playername2, HouseInfo[key][hOwner], true) == 0) { rent = 0; } else if(rent > GetPlayerMoney(i)) { PlayerInfo[pPhousekey] = 255; SendClientMessage(i, COLOR_WHITE, "You have been evicted."); rent = 0; } HouseInfo[key][hTakings] = HouseInfo[key][hTakings]+rent; } new tmpintrate; if (key != 255 && strcmp(playername2, HouseInfo[key][hOwner], true) == 0) { if(PlayerInfo[pDonateRank] > 0) { tmpintrate = intrate+4; } else { tmpintrate = intrate+2; }//HouseInfo[key][hLevel] } else { if(PlayerInfo[pDonateRank] > 0) { tmpintrate = 3; } else { tmpintrate = 1; } } new h,mi; gettime(h,mi); if(PlayerInfo[pPayDay] >= 0) { Tax += TaxValue;//Should work for every player online PlayerInfo[pAccount] -= TaxValue; if(PlayerInfo[pDonateRank] > 0) { new bonus = PlayerInfo[pPayCheck] / 2; PlayerInfo[pPayCheck] += bonus; } new checks = PlayerInfo[pPayCheck]; new ebill = (PlayerInfo[pAccount]/10000)*(PlayerInfo[pLevel]); ConsumingMoney = 1; GivePlayerMoney(i, checks); if(PlayerInfo[pAccount] > 0) { PlayerInfo[pAccount] -= ebill; SBizzInfo[4][sbTill] += ebill; } else { ebill = 0; } interest = (PlayerInfo[pAccount]/1000)*(tmpintrate); PlayerInfo[pExp]++; PlayerPlayMusic(i); PlayerInfo[pAccount] = account+interest; new str[1024]; format(str,1024,""wh"_________|"color_red"STATISTICI BANCA"wh"|_________\n\n"); format(str,1024,"%s"wh"Bani primiti: "color_green"%d$\n",str,checks); format(str,1024,"%s"wh"Taxa bani: "color_green"-%d$\n",str,TaxValue); if(PlayerInfo[pPhousekey] != 255 || PlayerInfo[pPbiskey] != 255){format(str,1024,"%s"wh"Electicitate Bill: "color_green"-%d$\n",str,ebill);} format(str,1024,"%s"wh"Balanta veche: "color_green"%d$\n",str,money); format(str,1024,"%s"wh"Dobanda: "color_green"0.%d "wh"percent\n",str,tmpintrate); format(str,1024,"%s"wh"Castig "color_green"%d$\n",str , interest); format(str,1024,"%s"wh"Bani cont: "color_green"%d$\n",str , PlayerInfo[pAccount]); format(str,1024,"%s"wh"Ora: "color_cyan"%02d:%02d",str,h,mi); format(str,1024,"%s\t\t "color_red"PayDay\n",str); format(str,1024,"%s\t\t\t\t"color_blue"PayCheck",str); ShowPlayerDialog( i, 790, DIALOG_STYLE_MSGBOX, " ", str, "Iesi", "" ); PlayerInfo[pPayDay] = 0; PlayerInfo[pPayCheck] = 0; PlayerInfo[pConnectTime] += 1; PlayerInfo[pRob] += 2; if(PlayerInfo[pDonateRank] > 0) { PlayerInfo[pPayDayHad] += 1; if(PlayerInfo[pPayDayHad] >= 5) { PlayerInfo[pExp]++; PlayerInfo[pPayDayHad] = 0; } } } else { SCM(i, COLOR_LIGHTRED, "* You haven't played long enough to obtain a PayDay."); } } } else { SCM(i, COLOR_LIGHTRED, "Nu ai primit payday pentru ca ai stat cu tv."); } } } return 1; } strtok(const string[], &index) { new length = strlen(string); while ((index < length) && (string[index] <= ' ')) { index++; } new offset = index; new result[20]; while ((index < length) && (string[index] > ' ') && ((index - offset) < (sizeof(result) - 1))) { result[index - offset] = string[index]; index++; } result[index - offset] = EOS; return result; }[/pawn]
  8. SteRiO

    masina

    cum sa adaug o masina in gm la spawn civil oricine sa pota so conduca nu numai eu sau personala oricine....
  9. [pawn]C:\Users\Boss\Desktop\GamesRo v6.1\gamemodes\GR.pwn(13673) : error 017: undefined symbol "IsPlayerInTurf" C:\Users\Boss\Desktop\GamesRo v6.1\gamemodes\GR.pwn(53994) : warning 235: public function lacks forward declaration (symbol "IsPlayerAdminCall") C:\Users\Boss\Desktop\GamesRo v6.1\gamemodes\GR.pwn(54480) : error 017: undefined symbol "Update" C:\Users\Boss\Desktop\GamesRo v6.1\gamemodes\GR.pwn(55477) : warning 217: loose indentation Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 2 Errors.[/pawn] aici : 1 eroare [pawn]{ new string[256]; for(new i=0; i<MAX_PLAYERS; i++) { CheckOtherFunction(i); if(Var[WantedLevel] == 0) SetPlayerWantedLevel(i, 0); else if(Var[WantedLevel] == 1) SetPlayerWantedLevel(i, 1); else if(Var[WantedLevel] == 2) SetPlayerWantedLevel(i, 2); else if(Var[WantedLevel] == 3) SetPlayerWantedLevel(i, 3); else if(Var[WantedLevel] == 4) SetPlayerWantedLevel(i, 4); else if(Var[WantedLevel] == 5) SetPlayerWantedLevel(i, 5); else if(Var[WantedLevel] == 6) SetPlayerWantedLevel(i, 6); else if(Var[WantedLevel] >= 7) Var[WantedLevel] = 6; IsPlayerInTurf(i); } if(SnowOn == 1) { for(new i=0; i<MAX_PLAYERS; i++) { if(GetPlayerInterior(i) >= 1 || GetPlayerVirtualWorld(i) >= 1) { RemovePlayerAttachedObject(i, 3); } else { SetPlayerAttachedObject(i, 3, 18863, 1, 14.877702, -3.078147, 19.289804, 213.993621, 36.619785, 334.528167 ); // SnowArc1 - 8167 } }[/pawn] a 2 [pawn]stock BannedExe(playerid) { PlayerInfo[playerid][pNameChanged] = 2 ;Update(playerid,pNameChangedx); Kick(playerid); }[/pawn]
  10. SteRiO

    ban pe timp

    am inteles dar ajutaotima cu erorile va rog
  11. SteRiO

    ban pe timp

    nam inteles ce ai in vedere
  12. //=-=-=-=-=-=-=-=-=-=-=-=-=-==-=-=-=-=-banpetimp-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-==-=-=-=-=-=-=-=-=-=-=-=-==-=-=-=-=-=-=-=-=-=-=-=-= if(strcmp(cmd, "/tempban", true) == 0) { new name[MAX_PLAYER_NAME]; new giveplayer[MAX_PLAYER_NAME]; new giveplayerid; if(PlayerInfo[playerid][pAdmin] >= 3); { tmp = strtok(cmdtext,idx); if(!strlen(tmp)) { SendClientMessage(playerid, COLOR_LIGHTBLUE, "Usage: /tempban [PlayerID] [Day(s)] [Reason]"); SendClientMessage(playerid, COLOR_ORANGE, "Function: Temporarily bans a player for specified Days"); return 1; } giveplayerid = ReturnUser(tmp); if(IsPlayerConnected(giveplayerid)) { tmp = strtok(cmdtext, idx); if (!strlen(tmp)) { SendClientMessage(playerid, COLOR_LIGHTBLUE, "Usage: /tempban [PlayerID] [Day(s)] [Reason]"); SendClientMessage(playerid, COLOR_ORANGE, "Function: Temporarily bans a player for specified Days"); return 1; } new days = strval(tmp); if(!IsNumeric(tmp)) return SendClientMessage(playerid, COLOR_LIGHTRED, "ERROR: Invalid Day! Only Numbers!"); if(strval(tmp) <= 0 || strval(tmp) > 1000) return SendClientMessage(playerid, COLOR_LIGHTRED, "ERROR: Invalid Day! (1-1000)"); new reason[128]; reason = strtok2(cmdtext,idx); if (!strlen(reason)) return SendClientMessage(playerid, COLOR_LIGHTRED, "ERROR: Reason not Specified!"); if (strlen(reason) <= 0 || strlen(reason) > 100) return SendClientMessage(playerid, COLOR_LIGHTRED, "ERROR: Invalid Reason length!"); new ip[15]; GetPlayerIp(giveplayerid,ip,15); GetPlayerName(playerid, name, sizeof name); GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer)); new File:tempban = fopen("LuxAdmin/Config/TempBans.ban", io_append); if (tempban) { new year,month,day; getdate(year, month, day); day += days; if (IsMonth31(month)) { if (day > 31) { month += 1; if (month > 12) { year += 1; while(day > 31) day -= 31; } else while(day > 31) day -= 31; } } else if (!IsMonth31(month)) { if (day > 30) { month += 1; if (month > 12) { year += 1; while(day > 30) day -= 30; } else while(day > 30) day -= 30; } } else if (!IsMonth31(month) && IsMonth29(year) && month == 2) { if (day > 29) { month += 1; if (month > 12) { year += 1; while(day > 29) day -= 29; } else while(day > 29) day -= 29; } } else if (!IsMonth31(month) && !IsMonth29(year) && month == 2) { if (day > 28) { month += 1; if (month > 12) { year += 1; while(day > 28) day -= 28; } else while(day > 28) day -= 28; } } format(string, sizeof string, "%d|%d|%d|%s\n", day, month, year, ip); fwrite(tempban, string); fclose(tempban); } format(string,128,"|- Administrator %s Temporarily Banned %s for %d day(s) | Reason: %s -|",name,giveplayer,days,reason); SendClientMessageToAll(grey,string); Kick(giveplayerid); format(string, sizeof string, "Admin %s Temporarily Banned %s for %d day(s) | Reason: %s",name,giveplayer,days,reason); SaveIn("TempBansLog",string); } else { ErrorMessages(playerid, 2); } } else ErrorMessages(playerid, 1); } return true; } am incercat sa pun comanda /ban pe timp si imi da urmatoarele erori E:\TOT\Íîâàÿ ïàïêà\gafadas\gamemodes\Gamemode.pwn(61824) : error 036: empty statement E:\TOT\Íîâàÿ ïàïêà\gafadas\gamemodes\Gamemode.pwn(61851) : error 017: undefined symbol "strtok2" E:\TOT\Íîâàÿ ïàïêà\gafadas\gamemodes\Gamemode.pwn(61851) : error 033: array must be indexed (variable "reason") E:\TOT\Íîâàÿ ïàïêà\gafadas\gamemodes\Gamemode.pwn(61868) : error 017: undefined symbol "IsMonth31" E:\TOT\Íîâàÿ ïàïêà\gafadas\gamemodes\Gamemode.pwn(61881) : error 017: undefined symbol "IsMonth31" E:\TOT\Íîâàÿ ïàïêà\gafadas\gamemodes\Gamemode.pwn(61894) : error 017: undefined symbol "IsMonth31" E:\TOT\Íîâàÿ ïàïêà\gafadas\gamemodes\Gamemode.pwn(61907) : error 017: undefined symbol "IsMonth31" E:\TOT\Íîâàÿ ïàïêà\gafadas\gamemodes\Gamemode.pwn(61925) : error 017: undefined symbol "grey" E:\TOT\Íîâàÿ ïàïêà\gafadas\gamemodes\Gamemode.pwn(61929) : error 017: undefined symbol "SaveIn" E:\TOT\Íîâàÿ ïàïêà\gafadas\gamemodes\Gamemode.pwn(61933) : error 017: undefined symbol "ErrorMessages" E:\TOT\Íîâàÿ ïàïêà\gafadas\gamemodes\Gamemode.pwn(61936) : error 029: invalid expression, assumed zero E:\TOT\Íîâàÿ ïàïêà\gafadas\gamemodes\Gamemode.pwn(61936) : error 017: undefined symbol "ErrorMessages"
  13. ajutatima va rog sa fac ceva la 24/7 pentru ati lua si sa scapi de la jail ceva o ranga va multumesc
  14. SteRiO

    payday

    dau restart la server si se da doar un payday si dupa nu se mai da dc? uitativa payday //=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=PayDay=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= public PayDay() { new string[128]; new account,interest; new rent = 0; for(new i = 0; i < MAX_PLAYERS; i++) { if(IsPlayerConnected(i)) { if(WatchingTV == 0) { if(PlayerInfo[pLevel] > 0) { if(MoneyMessage==1) { SCM(i, COLOR_LIGHTRED, "You failed to pay your debt, Jail time."); GameTextForPlayer(i, "~r~Busted!", 2000, 1); SetPlayerInterior(i, 5); SetPlayerPos(i, 322.9037,305.5694,999.1484); PlayerInfo[pJailed] = 1; ResetPlayerWeapons(i); WantedPoints = 0; SetPlayerSkin(i, 62); PlayerInfo[pMats] = 0; PlayerInfo[pJailTime] = 240; format(string, sizeof(string), "You are jailed for %d seconds. Bail: Unable", PlayerInfo[pJailTime]); SCM(i, COLOR_LIGHTBLUE, string); } new money=GetPlayerMoney(i); new playername2[MAX_PLAYER_NAME]; GetPlayerName(i, playername2, sizeof(playername2)); account = PlayerInfo[pAccount]; new key = PlayerInfo[pPhousekey]; if(key != 255) { rent = HouseInfo[key][hRent]; if(strcmp(playername2, HouseInfo[key][hOwner], true) == 0) { rent = 0; } else if(rent > GetPlayerMoney(i)) { PlayerInfo[pPhousekey] = 255; SendClientMessage(i, COLOR_WHITE, "You have been evicted."); rent = 0; } HouseInfo[key][hTakings] = HouseInfo[key][hTakings]+rent; } new tmpintrate; if (key != 255 && strcmp(playername2, HouseInfo[key][hOwner], true) == 0) { if(PlayerInfo[pDonateRank] > 0) { tmpintrate = intrate+4; } else { tmpintrate = intrate+2; }//HouseInfo[key][hLevel] } else { if(PlayerInfo[pDonateRank] > 0) { tmpintrate = 3; } else { tmpintrate = 1; } } new h,mi; gettime(h,mi); if(PlayerInfo[pPayDay] >= 0) { Tax += TaxValue;//Should work for every player online PlayerInfo[pAccount] -= TaxValue; if(PlayerInfo[pDonateRank] > 0) { new bonus = PlayerInfo[pPayCheck] / 2; PlayerInfo[pPayCheck] += bonus; } new checks = PlayerInfo[pPayCheck]; new ebill = (PlayerInfo[pAccount]/10000)*(PlayerInfo[pLevel]); ConsumingMoney = 1; GivePlayerMoney(i, checks); if(PlayerInfo[pAccount] > 0) { PlayerInfo[pAccount] -= ebill; SBizzInfo[4][sbTill] += ebill; } else { ebill = 0; } interest = (PlayerInfo[pAccount]/1000)*(tmpintrate); PlayerInfo[pExp]++; PlayerPlayMusic(i); PlayerInfo[pAccount] = account+interest; new str[1024]; SendClientMessage(i, COLOR_WHITE, "|___ BANK STATMENT ___|"); format(string, sizeof(string), " Paycheck: $%d Tax Money: -$%d", checks, TaxValue); SendClientMessage(i, COLOR_GRAD1, string); if(PlayerInfo[pPhousekey] != 255 || PlayerInfo[pPbiskey] != 255) { if(PlayerInfo[pPhousekey] != 255 || PlayerInfo[pPbiskey] != 255){format(str,1024,"%s"wh"Electicitate Bill: "color_green"-%d$\n",str,ebill);} SendClientMessage(i, COLOR_GRAD1, string); } format(string, sizeof(string), " Balance: $%d", account); SendClientMessage(i, COLOR_GRAD1, string); format(string, sizeof(string), " Interest Rate: 0.%d percent",tmpintrate); SendClientMessage(i, COLOR_GRAD2, string); format(string, sizeof(string), " Interest Gained $%d", interest); SendClientMessage(i, COLOR_GRAD3, string); SendClientMessage(i, COLOR_GRAD4, "|--------------------------------------|"); format(string, sizeof(string), " New Balance: $%d", PlayerInfo[pAccount]); SendClientMessage(i, COLOR_GRAD5, string); format(string, sizeof(string), " Rent: -$%d", rent); SendClientMessage(i, COLOR_GRAD5, string); format(string, sizeof(string), "~y~PayDay~n~~w~Paycheck"); GameTextForPlayer(i, string, 5000, 1); rent = 0; PlayerInfo[pPayDay] = 0; PlayerInfo[pPayCheck] = 0; PlayerInfo[pConnectTime] += 1; PlayerInfo[pRob] += 2; if(PlayerInfo[pDonateRank] > 0) { PlayerInfo[pPayDayHad] += 1; if(PlayerInfo[pPayDayHad] >= 5) { PlayerInfo[pExp]++; PlayerInfo[pPayDayHad] = 0; } } } else { SCM(i, COLOR_LIGHTRED, "* You haven't played long enough to obtain a PayDay."); } } } else { SCM(i, COLOR_LIGHTRED, "Nu ai primit payday pentru ca ai stat cu tv."); } } } return 1; } strtok(const string[], &index) { new length = strlen(string); while ((index < length) && (string[index] <= ' ')) { index++; } new offset = index; new result[20]; while ((index < length) && (string[index] > ' ') && ((index - offset) < (sizeof(result) - 1))) { result[index - offset] = string[index]; index++; } result[index - offset] = EOS; return result; }
×
×
  • Create New...

Important Information

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.