Jump to content

tjohen

Membru
  • Posts

    19
  • Joined

  • Last visited

    Never

Everything posted by tjohen

  1. tjohen

    payday

    Problema cu Payday : Jucatorii nu primesc payday`ul :| de ce ? public PayDay() { new string[128]; new account,interest; new rent = 0; for(new i = 0; i < MAX_PLAYERS; i++) { if(IsPlayerConnected(i)) { if(PlayerInfo[i][pLevel] > 0) { if(MoneyMessage[i]==1) { SendClientMessage(i, COLOR_LIGHTRED, "Ai datorii , ai intrat la inchisoare."); GameTextForPlayer(i, "~r~Arestat!", 2000, 1); SetPlayerInterior(i, 6); SetPlayerPos(i, 264.6288,77.5742,1001.0391); PlayerInfo[i][pJailed] = 1; ResetPlayerWeapons(i); WantedPoints[i] = 0; PlayerInfo[i][pJailTime] = 240; format(string, sizeof(string), "Esti inchis pentru %d secunde.", PlayerInfo[i][pJailTime]); SendClientMessage(i, COLOR_LIGHTBLUE, string); } new playername2[MAX_PLAYER_NAME]; GetPlayerName(i, playername2, sizeof(playername2)); account = PlayerInfo[i][pAccount]; new key = PlayerInfo[i][pPhousekey]; if(key != 255) { rent = HouseInfo[key][hRent]; if(strcmp(playername2, HouseInfo[key][hOwner], true) == 0) { rent = 0; } else if(rent > GetPlayerMoney(i)) { PlayerInfo[i][pPhousekey] = 255; SendClientMessage(i, COLOR_WHITE, "Ai fost eliberat."); rent = 0; } HouseInfo[key][hTakings] = HouseInfo[key][hTakings]+rent; } new tmpintrate; if (key != 255 && strcmp(playername2, HouseInfo[key][hOwner], true) == 0) { if(PlayerInfo[i][pDonateRank] > 0) { tmpintrate = intrate+4; } else { tmpintrate = intrate+2; }//HouseInfo[key][hLevel] } else { if(PlayerInfo[i][pDonateRank] > 0) { tmpintrate = 3; } else { tmpintrate = 1; } } if(PlayerInfo[i][pPayDay] >= 5) { Tax += TaxValue;//Should work for every player online PlayerInfo[i][pAccount] -= TaxValue; if(PlayerInfo[i][pDonateRank] > 0) { new bonus = PlayerInfo[i][pPayCheck] / 2; PlayerInfo[i][pPayCheck] += bonus; } new checks = PlayerInfo[i][pPayCheck]; new ebill = (PlayerInfo[i][pAccount]/10000)*(PlayerInfo[i][pLevel]); ConsumingMoney[i] = 1; GivePlayerMoney(i, checks); if(PlayerInfo[i][pAccount] > 0) { PlayerInfo[i][pAccount] -= ebill; SBizzInfo[4][sbTill] += ebill; } else { ebill = 0; } interest = (PlayerInfo[i][pAccount]/1000)*(tmpintrate); PlayerInfo[i][pExp]++; PlayerPlayMusic(i); PlayerInfo[i][pAccount] = account+interest; SendClientMessage(i, COLOR_WHITE, "|___ Salariu GAMESIASI ___|"); format(string, sizeof(string), " Salariu: $%d Taxa: -$%d", checks, TaxValue); SendClientMessage(i, COLOR_GRAD1, string); if(PlayerInfo[i][pPhousekey] != 255 || PlayerInfo[i][pPbiskey] != 255) { format(string, sizeof(string), " Energia Electrica: -$%d", ebill); SendClientMessage(i, COLOR_GRAD1, string); } format(string, sizeof(string), " Total: $%d", account); SendClientMessage(i, COLOR_GRAD1, string); format(string, sizeof(string), " Dobanda: 0.%d percent",tmpintrate); SendClientMessage(i, COLOR_GRAD2, string); format(string, sizeof(string), " Castiguri $%d", interest); SendClientMessage(i, COLOR_GRAD3, string); SendClientMessage(i, COLOR_GRAD4, "|--------------------------------------|"); format(string, sizeof(string), " Suma Totala: $%d", PlayerInfo[i][pAccount]); SendClientMessage(i, COLOR_GRAD5, string); format(string, sizeof(string), " Chirie: -$%d", rent); SendClientMessage(i, COLOR_GRAD5, string); format(string, sizeof(string), "~y~Payday~"); GameTextForPlayer(i, string, 5000, 1); rent = 0; PlayerInfo[i][pPayDay] = 0; PlayerInfo[i][pPayCheck] = 0; PlayerInfo[i][pConnectTime] += 1; PlayerInfo[i][pRob] += 1; if(PlayerInfo[i][pDonateRank] > 0) { PlayerInfo[i][pPayDayHad] += 1; if(PlayerInfo[i][pPayDayHad] >= 5) { PlayerInfo[i][pExp]++; PlayerInfo[i][pPayDayHad] = 0; } } } else { SendClientMessage(i, COLOR_LIGHTRED, "* Nu ai jucat destul de mult pentru a primi salariu."); } } } } SaveAccounts(); Checkprop(); return 1; } Ma ajuta cineva? Am postat si la probleme godfather ( RP ) dar nu imi raspunde nimeni sper sa ma ajute si pe mine cienva :|
  2. tjohen

    Bug Payday

    De un timp jucatorii nu mai primesc payday de pe server ? Ce pot face X( ?
  3. tjohen

    Problema

    Am facut asa si tot nu merge , pe un gm merge pe altu nu mai merge ce pot face ?
  4. tjohen

    Bug Masini

    public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger) { if(gTeam[playerid] >= 3) { if (IsACopCar(vehicleid) && !ispassenger) { if(PlayerInfo[playerid][pLeader]==1||PlayerInfo[playerid][pLeader]==2||PlayerInfo[playerid][pLeader]==3) {} else { new Float:cx, Float:cy, Float:cz; GetPlayerPos(playerid, cx, cy, cz); SetPlayerPos(playerid, cx, cy, cz); } } if (IsAnAmbulance(vehicleid) && !ispassenger) { if(PlayerInfo[playerid][pMember]==4||PlayerInfo[playerid][pLeader]==4){} else { new Float:cx, Float:cy, Float:cz; GetPlayerPos(playerid, cx, cy, cz); SetPlayerPos(playerid, cx, cy, cz); } } } return 1; } Done
  5. tjohen

    Bug Masini

    Nu am inteles cum sa fac?
  6. tjohen

    Bug Masini

    Am si eu o problema , cand ma urc intr-o masina ma da jos fara sa scrie nimica , + ca e facuta masina pt vla si ma da jos din ea chiar daca sunt vla
  7. tjohen

    O problema

    Dupa ce am terminat gm`u , am luat host si la`m pus pe host si cand vreau sa deschid gm`u imi apare la mode unknow de ce ?
  8. Mi se bugugiesc conturile :| ce pot face , de exemplu cand da cineva /login cu orice parola se poate loga ? ce pot rezolva
  9. Incearca cu [pawn]AddStaticVehicleEx[/pawn] si la sfarsit dupa cordonate inainte de ) pune o , si pune un timer . De exemplu [pawn]AddStaticVehicleEx(415,659.9653,-1297.7032,13.3228,1.6315,93,93,60000);[/pawn]
  10. tjohen

    Problema

    Am adaugat si eu derby destruction pe server si nu mi se vad masinile in arena is adaugate in gm si cand intru in arena is spawnate masinele dar is invizibile ce pot face ?
  11. Mersi imi poti da si /unwarn ?
  12. Cand dau cuiva warn imi cade serverul ce pot face ? :| [pawn]if(strcmp(cmd, "/warn", true) == 0) { if(IsPlayerConnected(playerid)) { tmp = strtok(cmdtext, idx); if(!strlen(tmp)) { SendClientMessage(playerid, COLOR_GRAD2, "USAGE: /warn [playerid/PartOfName] [reason]"); return 1; } giveplayerid = ReturnUser(tmp); if (PlayerInfo[playerid][pAdmin] >= 1) { if(IsPlayerConnected(giveplayerid)) { if(giveplayerid != INVALID_PLAYER_ID) { GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer)); GetPlayerName(playerid, sendername, sizeof(sendername)); new length = strlen(cmdtext); while ((idx < length) && (cmdtext[idx] <= ' ')) { idx++; } new offset = idx; new result[64]; while ((idx < length) && ((idx - offset) < (sizeof(result) - 1))) { result[idx - offset] = cmdtext[idx]; idx++; } result[idx - offset] = EOS; if(!strlen(result)) { SendClientMessage(playerid, COLOR_GRAD2, "USAGE: /warn [playerid/PartOfName] [reason]"); return 1; } PlayerInfo[giveplayerid][pWarns] += 1; if(PlayerInfo[giveplayerid][pWarns] >= 5) { new year, month,day; getdate(year, month, day); format(string, sizeof(string), "AdmCmd: %s was banned by %s (had 5 Warnings), reason: %s (%d-%d-%d)", giveplayer, sendername, (result),month,day,year); BanLog(string); format(string, sizeof(string), "AdmCmd: %s was banned by %s (had 5 Warnings), reason: %s", giveplayer, sendername, (result)); SendClientMessageToAll(COLOR_LIGHTRED, string); PlayerInfo[giveplayerid][pWarns] = 0; PlayerInfo[giveplayerid][pAdmin] = PlayerInfo[giveplayerid][pLevel]; PlayerInfo[giveplayerid][pLocked] = 1; new playersip[256]; GetPlayerIp(giveplayerid,playersip, sizeof(playersip)); SendClientMessage(giveplayerid,COLOR_DBLUE,"|___________[bAN INFO]___________|"); format(string, sizeof(string), "Numele tau este: %s.",giveplayer); SendClientMessage(giveplayerid, COLOR_WHITE, string); format(string, sizeof(string), "IP-ul tau este: %s.",playersip); SendClientMessage(giveplayerid, COLOR_WHITE, string); format(string, sizeof(string), "Ai fost banat de: %s.",sendername); SendClientMessage(giveplayerid, COLOR_WHITE, string); format(string, sizeof(string), "Ai fost banat pentru urmatorul motiv: %s(4 warnuri).",(result)); SendClientMessage(giveplayerid, COLOR_WHITE, string); format(string, sizeof(string), "Ai fost banat pe data de: %d/%d/%d (Ziua-Luna-Anul)",day,month,year); SendClientMessage(giveplayerid, COLOR_WHITE, string); SendClientMessage(giveplayerid,COLOR_DBLUE,"|___________[bAN INFO]___________|"); SendClientMessage(giveplayerid,COLOR_LIGHTRED,"[bAN INFO]: Poti face o cerere de unban pe forumul nostru.Forumul este nu avem deocamdata.Succes !"); SendClientMessage(giveplayerid,COLOR_WHITE,"[HINT]: Te sfatuim sa faci o poza la aceste informatii,si sa o postezi cand faci cerere unban.Apasa F8 pentru a face poza !"); Ban(giveplayerid); return 1; } new year, month,day; getdate(year, month, day); format(string, sizeof(string), "You warned %s, reason: %s", giveplayer, (result)); SendClientMessage(playerid, COLOR_LIGHTRED, string); format(string, sizeof(string), "You were warned by %s, reason: %s", sendername, (result)); SendClientMessage(giveplayerid, COLOR_LIGHTRED, string); format(string, sizeof(string), "AdmCmd: %s was warned by %s, reason: %s", giveplayer, sendername, (result)); SendClientMessageToAll(0xE42217FF, string); format(string, sizeof(string), "AdmCmd: %s was warned by %s, reason: %s (%d-%d-%d)", giveplayer, sendername, (result),month,day,year); WarnLog(string); Kick(giveplayerid); return 1; } }//not connected } else { format(string, sizeof(string), " %d is not an active player.", giveplayerid); SendClientMessage(playerid, COLOR_GRAD1, string); } } return 1; }[/pawn] Care e problema :-?
  13. tjohen

    PROBLEMA !!

    Am pus fara 6000 la sfarsit si nu merge imi da warnings alea si daca pun cu 6000 merge
  14. tjohen

    PROBLEMA !!

    Deageaba :| [pawn]C:\Documents and Settings\cRysTy\Desktop\samp sv\gamemodes\gf.pwn(6806) : warning 202: number of arguments does not match definition C:\Documents and Settings\cRysTy\Desktop\samp sv\gamemodes\gf.pwn(6807) : warning 202: number of arguments does not match definition C:\Documents and Settings\cRysTy\Desktop\samp sv\gamemodes\gf.pwn(6808) : warning 202: number of arguments does not match definition C:\Documents and Settings\cRysTy\Desktop\samp sv\gamemodes\gf.pwn(6809) : warning 202: number of arguments does not match definition C:\Documents and Settings\cRysTy\Desktop\samp sv\gamemodes\gf.pwn(6810) : warning 202: number of arguments does not match definition C:\Documents and Settings\cRysTy\Desktop\samp sv\gamemodes\gf.pwn(6811) : warning 202: number of arguments does not match definition [/pawn] La fel
  15. Cum pot rezolva warnings astea ? C:\Documents and Settings\cRysTy\Desktop\samp sv\gamemodes\gf.pwn(6806) : warning 202: number of arguments does not match definition C:\Documents and Settings\cRysTy\Desktop\samp sv\gamemodes\gf.pwn(6807) : warning 202: number of arguments does not match definition C:\Documents and Settings\cRysTy\Desktop\samp sv\gamemodes\gf.pwn(6808) : warning 202: number of arguments does not match definition C:\Documents and Settings\cRysTy\Desktop\samp sv\gamemodes\gf.pwn(6809) : warning 202: number of arguments does not match definition C:\Documents and Settings\cRysTy\Desktop\samp sv\gamemodes\gf.pwn(6810) : warning 202: number of arguments does not match definition C:\Documents and Settings\cRysTy\Desktop\samp sv\gamemodes\gf.pwn(6811) : warning 202: number of arguments does not match definition Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase Header size: 5904 bytes Code size: 1099948 bytes Data size: 4429832 bytes Stack/heap size: 16384 bytes; estimated max. usage=5103 cells (20412 bytes) Total requirements: 5552068 bytes 6 Warnings. 6806: AddStaticVehicle(415,659.9653,-1297.7032,13.3228,1.6315,93,93,60000); // Cheetah's VLA[iD:415] - 134 6807: AddStaticVehicle(518,670.5521,-1285.4664,13.2486,358.0997,93,93,60000); // Buchanier's VLA[iD:518] 135 6809: AddStaticVehicle(412,660.4728,-1274.0090,13.3849,0.2816,93,93,60000); // Voodoo's VLA[iD:412] 136 6810: AddStaticVehicle(567,670.2395,-1264.0541,13.3885,358.6707,93,93,60000); // Savana's VLA[iD:567] 137 6811: AddStaticVehicle(413,730.6775,-1276.1484,13.6562,0.4488,93,93,60000); // Pony's VLA[iD:413] 138 6812: AddStaticVehicle(469,756.9908,-1259.6201,13.5737,87.6669,93,93,60000); // Sparrow's VLA[iD:46] 139
  16. tjohen

    Problema

    Salutare am facut si eu un gm godfather si cand vreau sa aprind serverul mi se restarteaza ce pot face?
  17. am si eu o problema nu mai pot iesi din biz da intrat intru cu /enter iar cand dau exit nu mai merge
  18. tjohen

    Ajutor

    Salut vreau si eu comanda /setjob /n(ewbie) chat please
×
×
  • 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.