Jump to content
  • 0

Cum e mai rapid?


matrixismyname

Question

Cum e mai rapid, o functie intr-un include, sau toate functiile din include integrate in gamemode/filterscript?

Vreau sa-mi fac modul mai ...resource-friendly si nu stiu cum e mai ...fast.

Adica sa folosesc 10 include-uri sau 1000 de functii (adica sa zicem ca 1 include= 100 de functii) si sa iau toate functiile din include sa le bag in mod.

ir2tc1.png [url=http://forum.sa-mp.ro/filter-scripts-and-gamemode
Link to comment
Share on other sites

2 answers to this question

Recommended Posts

Guest
This topic is now closed to further replies.
  • Similar Content

    • By AlexCelTare
      Salut imi poate spune cineva cum fac atunci cand un player intra intr-un checkpoint, sa ii dea alt checkpoint si tot asa?
       
      Eu am facut asa:
      Dar habar nu am cum sa fac mai multe checkpointuri dupa ce intra intr-unul
       
      new bool:onCheck[MAX_PLAYERS];
      public OnPlayerCommandText(playerid, cmdtext[])
          if (strcmp("/startmission", cmdtext, true, 10) == 0)
          {
              if(IsPlayerInRangeOfPoint(playerid, 3.0, 2333.1101,-1072.5065,1049.0234))
              {
              SetPlayerCheckpoint(playerid, -2130.9629,-2061.5767,63.3069, 3.0);
              onCheck[playerid] = true;
              }
              return 1;
          }
       
      public OnPlayerEnterCheckpoint(playerid)
      {
          if(onCheck[playerid]) // if it's true
          {
              GivePlayerMoney(playerid, 10);
              GameTextForPlayer(playerid,"~g~Mission 1 : Discover Dealership Completed!\nAnd Got +10$",3000,4);
              DisablePlayerCheckpoint(playerid);
              onCheck[playerid] = false;
          }
    • By iustin250
      Am nevoie de scripter il si platesc daca munceste bine.
    • By Wreeper
      De exemplu cand imi dau 3000000000 bani (3kkk), imi da bani pe minus in loc sa-mi dea 3kkk.
      Stiu ca e din cauza la 32-bit, am bagat si LY.inc insa problema inca persista.
      Ce as putea sa fac sa scot aceasta limita?
    • By Alin ︻芫═─── •
      Am descarcat acest Gamemode B-HOOD medium edit!  are un logo mai sus de login un logo cu numele spacework.ro si nu gasesc sa il scot
    • By GamerulFOX
      CMD:cursataxi(playerid, params[]) {     new id, bani, string[256], string1[256], name[MAX_PLAYER_NAME], name1[MAX_PLAYER_NAME];     GetPlayerName(playerid, name, sizeof(name));     GetPlayerName(id, name1, sizeof(name1));     if(sscanf(params, "ud", id, bani)) return SendClientMessage(playerid, SYNTAX, "/cursataxi <playerid/name> <amount>");     new Float:x, Float:z, Float:y;     GetPlayerPos(id, Float:x, Float:y, Float:z);     if(fTaxi[playerid] == 0) return SendClientMessage(playerid, 0xff0000FF, "Nu esti din factiunea 'Taxi' !");     if(!IsPlayerInVehicle(playerid, cTaxi[0])) return SendClientMessage(playerid, 0xff0000FF, "Nu esti in masina de taxi !");     if(!IsPlayerInVehicle(playerid, cTaxi[1])) return SendClientMessage(playerid, 0xff0000FF, "Nu esti in masina de taxi !");     if(!IsPlayerInVehicle(playerid, cTaxi[2])) return SendClientMessage(playerid, 0xff0000FF, "Nu esti in masina de taxi !");     if(!IsPlayerInRangeOfPoint(playerid, 2.0, x, y, z)) return SendClientMessage(playerid, 0xff0000FF, "Nu esti langa acel player!");     if(GetPlayerMoney(id) < bani) return SendClientMessage(playerid, 0xff0000FF, "Acel player nu are suficienti lei pentru a platii cursa!");     if(!IsPlayerConnected(id) || id == INVALID_PLAYER_ID) return SCM(playerid, 0xff0000FF, "Acel jucator nu este conectat!");     format(string, sizeof(string), "Iai oferit o cursa lui %s, pentru %d lei!", name1, bani);     SendClientMessage(playerid, 0x00aeffFF, string);     format(string1, sizeof(string1), "Taximetristul %s ti-a oferit o cursa pe %d lei!", name, bani);     SendClientMessage(playerid, 0x10d4deff, string);     GivePlayerMoney(id, -bani);     GivePlayerMoney(playerid, bani);     return 1; } VREAU SA MENTIONEZ CA AM INCERCAT SI ASA CMD:cursataxi(playerid, params[]) {     new id, bani, string[256], string1[256], name[MAX_PLAYER_NAME], name1[MAX_PLAYER_NAME];     GetPlayerName(playerid, name, sizeof(name));     GetPlayerName(id, name1, sizeof(name1));     if(sscanf(params, "ud", id, bani)) return SendClientMessage(playerid, SYNTAX, "/cursataxi <playerid/name> <amount>");     new Float:x, Float:z, Float:y;     GetPlayerPos(id, Float:x, Float:y, Float:z);     if(fTaxi[playerid] == 0) return SendClientMessage(playerid, 0xff0000FF, "Nu esti din factiunea 'Taxi' !");     if(GetPlayerVehicleID(playerid) != cTaxi[0] || GetPlayerVehicleID(playerid) != cTaxi[1] || GetPlayerVehicleID(playerid) != cTaxi[2]) return SendClientMessage(playerid, 0xff0000FF, "Nu esti in masina de taxi!");     if(!IsPlayerInRangeOfPoint(playerid, 2.0, x, y, z)) return SendClientMessage(playerid, 0xff0000FF, "Nu esti langa acel player!");     if(GetPlayerMoney(id) < bani) return SendClientMessage(playerid, 0xff0000FF, "Acel player nu are suficienti lei pentru a platii cursa!");     if(!IsPlayerConnected(id) || id == INVALID_PLAYER_ID) return SCM(playerid, 0xff0000FF, "Acel jucator nu este conectat!");     format(string, sizeof(string), "Iai oferit o cursa lui %s, pentru %d lei!", name1, bani);     SendClientMessage(playerid, 0x00aeffFF, string);     format(string1, sizeof(string1), "Taximetristul %s ti-a oferit o cursa pe %d lei!", name, bani);     SendClientMessage(playerid, 0x10d4deff, string);     GivePlayerMoney(id, -bani);     GivePlayerMoney(playerid, bani);     return 1; }

       
  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • 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.