Jump to content

AndyAdv

Membru
  • Posts

    48
  • Joined

  • Last visited

Profile Information

  • Sex
    Masculin
  • In-game Name
    AndyAdv
  • Level of knowledge
    Mediu

Recent Profile Visitors

827 profile views

AndyAdv's Achievements

Contributor

Contributor (5/14)

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

Recent Badges

0

Reputation

2

Community Answers

  1. C:\Users\Andrei\Desktop\Gamemode\Gamemode\pawno\include\YSI\y_hooks/impl.inc(791) : warning 219: local variable "vehicleid" shadows a variable at a preceding level C:\Users\Andrei\Desktop\Gamemode\Gamemode\pawno\include\YSI\y_hooks/impl.inc(834) : warning 219: local variable "vehicleid" shadows a variable at a preceding level C:\Users\Andrei\Desktop\Gamemode\Gamemode\pawno\include\YSI\y_hooks/impl.inc(1005) : warning 219: local variable "vehicleid" shadows a variable at a preceding level C:\Users\Andrei\Desktop\Gamemode\Gamemode\pawno\include\YSI\y_hooks/impl.inc(1050) : warning 219: local variable "vehicleid" shadows a variable at a preceding level C:\Users\Andrei\Desktop\Gamemode\Gamemode\pawno\include\YSI\y_hooks/impl.inc(1530) : warning 219: local variable "vehicleid" shadows a variable at a preceding level C:\Users\Andrei\Desktop\Gamemode\Gamemode\pawno\include\YSI\y_hooks/impl.inc(1620) : warning 219: local variable "vehicleid" shadows a variable at a preceding level C:\Users\Andrei\Desktop\Gamemode\Gamemode\pawno\include\YSI\y_hooks/impl.inc(1665) : warning 219: local variable "vehicleid" shadows a variable at a preceding level C:\Users\Andrei\Desktop\Gamemode\Gamemode\pawno\include\YSI\y_hooks/impl.inc(1711) : warning 219: local variable "vehicleid" shadows a variable at a preceding level C:\Users\Andrei\Desktop\Gamemode\Gamemode\pawno\include\YSI\y_hooks/impl.inc(1755) : warning 219: local variable "vehicleid" shadows a variable at a preceding level C:\Users\Andrei\Desktop\Gamemode\Gamemode\pawno\include\YSI\y_hooks/impl.inc(2159) : warning 219: local variable "vehicleid" shadows a variable at a preceding level C:\Users\Andrei\Desktop\Gamemode\Gamemode\pawno\include\YSI\y_hooks/impl.inc(2203) : warning 219: local variable "vehicleid" shadows a variable at a preceding level C:\Users\Andrei\Desktop\Gamemode\Gamemode\pawno\include\systems.inc(5748) : warning 219: local variable "vehicleid" shadows a variable at a preceding level gmm.pwn(1560) : error 056: arrays, local variables and function arguments cannot be public (variable "SpeedUP") edit: Am pus YCMD si help la comanda gmm.pwn(1561) : error 010: invalid function or declaration gmm.pwn(1562) : error 001: expected token: ";", but found "-identifier-" gmm.pwn(1563) : error 010: invalid function or declaration gmm.pwn(1565) : error 010: invalid function or declaration gmm.pwn(1566) : error 010: invalid function or declaration gmm.pwn(1568) : error 010: invalid function or declaration gmm.pwn(1571) : error 010: invalid function or declaration gmm.pwn(1573) : error 010: invalid function or declaration gmm.pwn(3654) : warning 219: local variable "vehicleid" shadows a variable at a preceding level gmm.pwn(3674) : warning 219: local variable "vehicleid" shadows a variable at a preceding level gmm.pwn(3738) : warning 219: local variable "vehicleid" shadows a variable at a preceding level gmm.pwn(4478) : warning 219: local variable "vehicleid" shadows a variable at a preceding level gmm.pwn(4620) : warning 219: local variable "vehicleid" shadows a variable at a preceding level gmm.pwn(5084) : warning 219: local variable "vehicleid" shadows a variable at a preceding level gmm.pwn(6122) : warning 219: local variable "vehicleid" shadows a variable at a preceding level gmm.pwn(6345) : warning 219: local variable "vehicleid" shadows a variable at a preceding level gmm.pwn(6351) : warning 219: local variable "vehicleid" shadows a variable at a preceding level gmm.pwn(7011) : warning 219: local variable "vehicleid" shadows a variable at a preceding level gmm.pwn(7052) : warning 219: local variable "vehicleid" shadows a variable at a preceding level gmm.pwn(7093) : warning 219: local variable "vehicleid" shadows a variable at a preceding level gmm.pwn(12826) : warning 219: local variable "vehicleid" shadows a variable at a preceding level gmm.pwn(12832) : warning 219: local variable "vehicleid" shadows a variable at a preceding level gmm.pwn(15214) : warning 219: local variable "vehicleid" shadows a variable at a preceding level gmm.pwn(20404) : warning 219: local variable "vehicleid" shadows a variable at a preceding level gmm.pwn(27897) : warning 219: local variable "vehicleid" shadows a variable at a preceding level gmm.pwn(27903) : warning 219: local variable "vehicleid" shadows a variable at a preceding level gmm.pwn(27912) : warning 219: local variable "vehicleid" shadows a variable at a preceding level gmm.pwn(28176) : warning 219: local variable "vehicleid" shadows a variable at a preceding level gmm.pwn(30524) : warning 219: local variable "vehicleid" shadows a variable at a preceding level gmm.pwn(30529) : warning 219: local variable "vehicleid" shadows a variable at a preceding level gmm.pwn(30532) : warning 219: local variable "vehicleid" shadows a variable at a preceding level gmm.pwn(30536) : warning 219: local variable "vehicleid" shadows a variable at a preceding level gmm.pwn(31303) : warning 219: local variable "vehicleid" shadows a variable at a preceding level gmm.pwn(31309) : warning 219: local variable "vehicleid" shadows a variable at a preceding level gmm.pwn(33242) : warning 219: local variable "vehicleid" shadows a variable at a preceding level gmm.pwn(1306) : warning 204: symbol is assigned a value that is never used: "g_SpeedThreshold" gmm.pwn(1307) : warning 204: symbol is assigned a value that is never used: "g_SpeedUpTimer" gmm.pwn(1562) : warning 203: symbol is never used: "vehicleid" Ma poti ajuta? PS:Folosesc ZEX compiler 3.10.8 Folosesc YCMD si am pus YCMD si help dar am dat compile dupa
  2. Man cand intru pe el zice ca am Ban Ip. Ce sa fac?
  3. Am gamemode last-time de la skillz.
  4. Pai si ce pot sa fac pentru a da mai intai load si apoi sa pornesc payday?
  5. PlayerInfo[playerid][pPayDayIn] = cache_get_field_content_int(0, "PayDayIn"); asta??
  6. Tin sa mentionez ca este facut pe gm Last-Time. Edit de Burned.
  7. Cand intru pe server imi da payday chiar daca eu nu am 0 la PayDayIn. Si nu stiu ce are. Code: ptask payday[1000](playerid) { new hour,minn,sec; gettime(hour,minn,sec); if(PlayerInfo[playerid][pSleeping] == 0 && Spectate[playerid] == 255 && AFKSeconds[playerid] < 15) if(PlayerInfo[playerid][pPayDayIn] < 1) { new string[128]; new interest,account[MAX_PLAYERS]; new rent[MAX_PLAYERS]; SetTimer("ScadeLicentele", 4000, false); new key = PlayerInfo[playerid][pHouse]; if(key != 999) { rent[playerid] = HouseInfo[key][hRent]; HouseInfo[key][hTakings] += rent[playerid]; } new tmpintrate; SendClientMessage(playerid, -1, "{2b46e2}-------------------------------------------------------------------------------------------------------------{FFFFFF}"); if(PlayerInfo[playerid][pPremiumAccount] == 1) { tmpintrate = 2; PlayerInfo[playerid][pPayDayHad] += 1; if(PlayerInfo[playerid][pPayDayHad] >= 5) { PlayerInfo[playerid][pExp]++; PlayerInfo[playerid][pPayDayHad] = 0; } new bonus = PlayerInfo[playerid][pPayCheck] / 2; PlayerInfo[playerid][pPayCheck] += bonus; } else { tmpintrate = 1; } account[playerid] = PlayerInfo[playerid][pAccount]; Tax += TaxValue; //PlayerInfo[playerid][pAccount] -= TaxValue; new checks = PlayerInfo[playerid][pLevel]*2500+random(3000); if(PlayerInfo[playerid][pDailyLogin] == 0) checks = checks*2; GivePlayerCash(playerid, checks); interest = (PlayerInfo[playerid][pAccount]/5000)*(tmpintrate); if(PlayerInfo[playerid][pDailyLogin] == 0) interest = interest*2; if(PlayerInfo[playerid][pDailyLogin] == 0) PlayerInfo[playerid][pExp] += 100; else PlayerInfo[playerid][pExp] += 200; UpdateProgress(playerid, 0); PlayerInfo[playerid][pAccount] += interest+1000; SendClientMessage(playerid, -1, "Ai primit o ora jucata."); PlayerInfo[playerid][pConnectTime] += 1; format(string, sizeof(string), "UPDATE `users` SET `DayHours`=`DayHours`+1 WHERE `ID`='%d'", PlayerInfo[playerid][pSQLID]); mysql_query(SQL, string); format(string, sizeof(string), "UPDATE `users` SET `HoursMonth`=`HoursMonth`+1 WHERE `ID`='%d'", PlayerInfo[playerid][pSQLID]); mysql_query(SQL, string); PlayerInfo[playerid][pSeconds] = 0; if(PlayerInfo[playerid][pDailyLogin] == 0) { PlayerInfo[playerid][pDailyLogin] = 1; UpdateVar(playerid, "DailyLogin", 1); SCM(playerid, -1, "You got +100 experience points because it's your first payday from this day."); } PlayerInfo[playerid][pPayDay] = 0; PlayerInfo[playerid][pPayCheck] = 0; PlayerInfo[playerid][pPayDayIn] = 3600; PlayerInfo[playerid][pSpinPoints] += 1; PlayerInfo[playerid][pPetPoints] += 15; PlayerInfo[playerid][pLSTPoints] += 5; format(string, sizeof(string), "Paycheck (without taxes): %s $ | Experience earned: 200.", FormatNumber(checks)); SendClientMessage(playerid, -1, string); format(string, sizeof(string), "Visit bank if you want to withdraw your money."); SendClientMessage(playerid, -1, "{FFFFFF}Ai primit 1 Spin Point{FFFFFF}"); SendClientMessage(playerid, -1, "{FFFFFF}Ai primit 15 Pet Points{FFFFFF}"); SendClientMessage(playerid, -1, "{8A2BE2}LST Points:{FFFFFF}Ai primit 5 LST Points"); SendClientMessage(playerid, -1, string); SendClientMessage(playerid, -1, "{2b46e2}-------------------------------------------------------------------------------------------------------------{FFFFFF}"); UpdateProgress(playerid, 0); Update(playerid, pSpinPointsx); Update(playerid, pLSTPointsx); if(hour == 21) { new gold = 1 + random(10); new money = 10000 + random(5000); for(new h = 0; h < MAX_CLANS; h++) { if(strlen(ClanInfo[h][clName]) != 0) { if(GetClanTurfs(h) >= 10) { if(PlayerInfo[playerid][pClan] == h && h != 0) { PlayerInfo[playerid][pPremiumPoints] += gold; Update(playerid, pPremiumPointsx); GivePlayerCash(playerid, money); format(string, sizeof(string), "You got %d diamants and $%s because your clan had more than 10 territories.", gold, FormatNumber(money)); SCM(playerid, COLOR_MONEY, string); } } } } } if(RestartPayday == 1) { SendClientMessageToAll(-1, "Server-ul a fost restartat! Va rugam sa reveniti."); GameModeExit(); } } else { new string[64]; PlayerInfo[playerid][pPayDayIn] --; format(string, sizeof(string), "~y~Payday in %s minutes.", CalculeazaTimp2(PlayerInfo[playerid][pPayDayIn])); PlayerTextDrawSetString(playerid, PlayerText:PaydayTimer_PTD[playerid], string); PlayerTextDrawShow(playerid, PlayerText:PaydayTimer_PTD[playerid]); } return 1; }
  8. Am deinit new PlayerText:PaydayTimer_PTD dar nu a mers
  9. PlayerTextDrawSetString(playerid, PlayerText:PaydayTimer_PTD[playerid], string); PlayerTextDrawShow(playerid, PlayerText:PaydayTimer_PTD[playerid]); Am rezolvat iar codul de sus e cel rezolvat!
  10. PlayerTextDrawSetString(playerid, PlayerText:PaydayTimer_PTD[playerid], string); PlayerTextDrawShow(playerid, PlayerText:PaydayTimer_PTD[playerid]); Am rezolvat iar cel de sus e cod-ul rezolvat!
  11. Erori: C:\Users\Andrei\Desktop\All Folders\Gamemode\Gamemode\gamemodes\gmm.pwn(31649) : error 035: argument type mismatch (argument 2) C:\Users\Andrei\Desktop\All Folders\Gamemode\Gamemode\gamemodes\gmm.pwn(31650) : error 035: argument type mismatch (argument 2) code: ptask payday[1000](playerid) { new hour,minn,sec; gettime(hour,minn,sec); if(PlayerInfo[playerid][pSleeping] == 0 && Spectate[playerid] == 255 && AFKSeconds[playerid] < 15) if(PlayerInfo[playerid][pPayDayIn] == 0) { new string[128]; new interest,account[MAX_PLAYERS]; new rent[MAX_PLAYERS]; SetTimer("ScadeLicentele", 4000, false); new key = PlayerInfo[playerid][pHouse]; if(key != 999) { rent[playerid] = HouseInfo[key][hRent]; HouseInfo[key][hTakings] += rent[playerid]; } new tmpintrate; SendClientMessage(playerid, -1, "{2b46e2}-------------------------------------------------------------------------------------------------------------{FFFFFF}"); if(PlayerInfo[playerid][pPremiumAccount] == 1) { tmpintrate = 2; PlayerInfo[playerid][pPayDayHad] += 1; if(PlayerInfo[playerid][pPayDayHad] >= 5) { PlayerInfo[playerid][pExp]++; PlayerInfo[playerid][pPayDayHad] = 0; } new bonus = PlayerInfo[playerid][pPayCheck] / 2; PlayerInfo[playerid][pPayCheck] += bonus; } else { tmpintrate = 1; } account[playerid] = PlayerInfo[playerid][pAccount]; Tax += TaxValue; //PlayerInfo[playerid][pAccount] -= TaxValue; new checks = PlayerInfo[playerid][pLevel]*2500+random(3000); if(PlayerInfo[playerid][pDailyLogin] == 0) checks = checks*2; GivePlayerCash(playerid, checks); interest = (PlayerInfo[playerid][pAccount]/5000)*(tmpintrate); if(PlayerInfo[playerid][pDailyLogin] == 0) interest = interest*2; if(PlayerInfo[playerid][pDailyLogin] == 0) PlayerInfo[playerid][pExp] += 100; else PlayerInfo[playerid][pExp] += 200; UpdateProgress(playerid, 0); PlayerInfo[playerid][pAccount] += interest+1000; SendClientMessage(playerid, -1, "Ai primit o ora jucata."); PlayerInfo[playerid][pConnectTime] += 1; format(string, sizeof(string), "UPDATE `users` SET `DayHours`=`DayHours`+1 WHERE `ID`='%d'", PlayerInfo[playerid][pSQLID]); mysql_query(SQL, string); format(string, sizeof(string), "UPDATE `users` SET `HoursMonth`=`HoursMonth`+1 WHERE `ID`='%d'", PlayerInfo[playerid][pSQLID]); mysql_query(SQL, string); PlayerInfo[playerid][pSeconds] = 0; if(PlayerInfo[playerid][pDailyLogin] == 0) { PlayerInfo[playerid][pDailyLogin] = 1; UpdateVar(playerid, "DailyLogin", 1); SCM(playerid, -1, "You got +100 experience points because it's your first payday from this day."); } PlayerInfo[playerid][pPayDay] = 0; PlayerInfo[playerid][pPayCheck] = 0; PlayerInfo[playerid][pPayDayIn] = 3600; PlayerInfo[playerid][pSpinPoints] += 1; PlayerInfo[playerid][pPetPoints] += 15; PlayerInfo[playerid][pLSTPoints] += 5; format(string, sizeof(string), "Paycheck (without taxes): %s $ | Experience earned: 200.", FormatNumber(checks)); SendClientMessage(playerid, -1, string); format(string, sizeof(string), "Visit bank if you want to withdraw your money."); SendClientMessage(playerid, -1, "{FFFFFF}Ai primit 1 Spin Point{FFFFFF}"); SendClientMessage(playerid, -1, "{FFFFFF}Ai primit 15 Pet Points{FFFFFF}"); SendClientMessage(playerid, -1, "{8A2BE2}LST Points:{FFFFFF}Ai primit 5 LST Points"); SendClientMessage(playerid, -1, string); SendClientMessage(playerid, -1, "{2b46e2}-------------------------------------------------------------------------------------------------------------{FFFFFF}"); UpdateProgress(playerid, 0); Update(playerid, pSpinPointsx); Update(playerid, pLSTPointsx); if(hour == 21) { new gold = 1 + random(10); new money = 10000 + random(5000); for(new h = 0; h < MAX_CLANS; h++) { if(strlen(ClanInfo[h][clName]) != 0) { if(GetClanTurfs(h) >= 10) { if(PlayerInfo[playerid][pClan] == h && h != 0) { PlayerInfo[playerid][pPremiumPoints] += gold; Update(playerid, pPremiumPointsx); GivePlayerCash(playerid, money); format(string, sizeof(string), "You got %d diamants and $%s because your clan had more than 10 territories.", gold, FormatNumber(money)); SCM(playerid, COLOR_MONEY, string); } } } } } if(RestartPayday == 1) { SendClientMessageToAll(-1, "Server-ul a fost restartat! Va rugam sa reveniti."); GameModeExit(); } } else { new string[64]; PlayerInfo[playerid][pPayDayIn] --; format(string, sizeof(string), "~y~Payday in %s minutes.", CalculeazaTimp2(PlayerInfo[playerid][pPayDayIn])); 31649: PlayerTextDrawSetString(playerid, PaydayTimer_PTD ,string); // linia problema 31650: PlayerTextDrawShow(playerid, PaydayTimer_PTD); // linia problema } return 1; } Ma puteti ajuta? Daca v-am dat liniile gresite scuze, mie asa imi arata compilator-ul...
  12. C:\Users\Andrei\Desktop\All Folders\Gamemode\Gamemode\gamemodes\gmm.pwn(31595) : warning 217: loose indentationC:\Users\Andrei\Desktop\All Folders\Gamemode\Gamemode\gamemodes\gmm.pwn(31599) : warning 217: loose indentation Pe astea le-am rezolvat dar erorile nu... Liniile de la erori sunt astea PlayerTextDrawSetString(playerid, PaydayTimer_PTD ,string); PlayerTextDrawShow(playerid, PaydayTimer_PTD);
×
×
  • 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.