Jump to content

Pa4enka

Membru
  • Posts

    30
  • Joined

  • Last visited

Everything posted by Pa4enka

  1. Your mistake is not that you don't know how to do it, but that you made a strategic mistake when planning your gamemode structure: I don't recommend using filterscripts as modules. You should use inludes and you won't have this problem...
  2. What kind of errors?
  3. If relevant, message me on discord: Levante#0652
  4. try replace that return 1 in your FS to return 0
  5. https://github.com/pawn-lang/compiler/releases you need to replace all compiler files with the files in the archive and compile the gamemode again. I recommend installing version 3.10.8 to start
  6. Pa4enka

    HElp

    SET GLOBAL time_zone = '+00:00';
  7. Replace your code section with my code. I want to remove legacy from your code. This is important to get to the core of your problem.
  8. #function UpdateProgress(playerid, bar) { >> forward UpdateProgress(playerid, bar); public UpdateProgress(playerid, bar) {
  9. Hello everybody! My name is Yurii. I'm a Pawn developer from Ukraine. Ready to help you make the best systems for your SA:MP project! Why should you choose me? Because: 1) My experience in the Pawn language is more than 5 years. 2) Work on large russian-language projects online with more than 500 players at the same time. 3) A lot of positive feedback and recommendations from serious managers. 4) My work is completely transparent. 5) I work WITHOUT pre-payment What can you order from me? Here is the list: 1) help in correcting errors/warnings; 2) consultation on any technical issues; 3) systems of any complexity according to your terms of reference. 4) editing code/gamemode (optimization). 5) bug fixes of any complexity. etc... Separately, I consider proposals: 1) work on your project for a fixed salary 2) writing a "gamemode from 0" * here everything depends on my free time and your payment. Payment Methods: 1) PayPal 2) Swift Transfer 3) Toncoin Telegram: t.me/levante24 Discord: Levante#0652 Support Ukraine - UNITED24
  10. if(PlayerInfo[playerid][pAdmin || PlayerInfo[playerid][pHelper]) return true; to the top of the public
  11. new const gArrayCoordCheckpoint[][] = { { -372.6979, -1456.3641, 26.4046 }, // coord checkpoint 1 { -419.0640, -1381.4750, 30.5690 } // coord checkpoint 2 // .... } new gCheckpointCount[MAX_PLAYERS], gPlayerStart[MAX_PLAYERS char]; // when the player needs to show the first checkpoint SetPlayerCheckpoint(playerid, gArrayCoordCheckpoint[0][0], gArrayCoordCheckpoint[0][1], gArrayCoordCheckpoint[0][2], 3.0 ); gCheckpointCount[playerid] = 0; gPlayerStart{playerid} = true; // OnPlayerEnterCheckpoint if( gPlayerStart{playerid} ) { gCheckpointCount[playerid] ++; if(gCheckpointCount[playerid] >= sizeof gArrayCoordCheckpoint) { // last checkpoint // ...... gCheckpointCount[playerid] = 0; return true; } new idx = gCheckpointCount[playerid]; SetPlayerCheckpoint(playerid, gArrayCoordCheckpoint[idx][0], gArrayCoordCheckpoint[idx][1], gArrayCoordCheckpoint[idx][2], 3.0 ); } this is current example.
  12. You may not have a gamemode in your config.
  13. tabsize 0 is not good practice. Author, just make the code a ladder (tab).
  14. if( !strcmp("/info", cmdtext, true, 10) ) { SendClientMessage(playerid, 0x63a74FF, "Pretul unui deagle este de 15k"); SendClientMessage(playerid, 0x63a74FF, "Pretul unui ak47 este de 30k"); SendClientMessage(playerid, 0x63a74FF, "Pretul unu shotgun este de 45k"); SendClientMessage(playerid, 0x63a74FF, "Pretul unui uzi este de 70k"); SendClientMessage(playerid, 0x63a74FF, "Pretul unui minigun este de 400k"); return 1; } if( !strcmp("/deagle", cmdtext, true, 10) ) { if(GetPlayerMoney(playerid) < 15000) return SendClientMessage(playerid, 0x63a74FF,"EROARE:NU AI SUFICIENTI BANII"); GivePlayerMoney(playerid, -15000); GivePlayerWeapon(playerid, 24, 100); SendClientMessage(playerid, 0x63a74FF,"AI PLATIT 15K SI AI PRIMIT UN DEAGLE"); } if( !strcmp("/ak47", cmdtext, true, 10) ) { if(GetPlayerMoney(playerid) < 30000) return SendClientMessage(playerid,0x63a74FF,"EROARE:NU AI SUFICIENTI BANII"); GivePlayerMoney(playerid, -35000); GivePlayerWeapon(playerid, 30, 100); SendClientMessage(playerid, 0x63a74FF, "AI PLATIT 35K SI AI PRIMIT UN AK47"); } if( strcmp("/shotgun", cmdtext, true, 10) ) { if(GetPlayerMoney(playerid) < 45000) return SendClientMessage(playerid, 0x63a74FF, "EROARE:NU AI SUFICIENTI BANII"); GivePlayerMoney(playerid, -45000); GivePlayerWeapon(playerid, 25, 100); SendClientMessage(playerid, 0x63a74FF, "AI PLATIT 45K SI AI PRIMIT UN SHOTGUN"); } if( !strcmp("/uzi", cmdtext, true, 10) ) { if(GetPlayerMoney(playerid) < 70000) return SendClientMessage(playerid, 0x63a74FF, "EROARE:NU AI SUFICIENTI BANII"); GivePlayerMoney(playerid, -70000); GivePlayerWeapon(playerid, 28, 100); SendClientMessage(playerid, 0x63a74FF, "AI PLATIT 70K SI AI PRIMIT UN UZI"); } if( !strcmp("/minigun", cmdtext, true, 10) ) { if(GetPlayerMoney(playerid) < 400000) return SendClientMessage(playerid, 0x63a74FF, "EROARE:NU AI SUFICIENTI BANII"); GivePlayerMoney(playerid, -400000); GivePlayerWeapon(playerid, 38, 100); SendClientMessage(playerid, 0x63a74FF, "AI PLATIT 400K SI AI PRIMIT UN UZI"); }
  15. Updates streamer items. In our case - pickups.
×
×
  • 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.