Jump to content
  • 0

Bug oare ma ajuta cineva? sper


[XSR]NexT

Question

Salut cum pot face de exemplu ca atunci cand esti la dm si sa nu te lase sa scrii vreo comanda si sati scrie daca dai la minigun /nrg sai apara type /exit for leave the deathmatch :( pentru ca am incercat o metoda cu else si nu merge adik a mers doar la un singur teleport iar acum nu mai merge nici la ala apare scrisu invizibil deci :( sper sa ma puteti ajuta :(

35012l1.png.aee1a3398b9bd9f8eec50574d2cd

Link to comment
Share on other sites

11 answers to this question

Recommended Posts

uite-o

if (strcmp("/exitdm", cmdtext, true, 10) == 0)
    {
    if(InMinigun[playerid] == 1)
    {
    if(IsPlayerInAnyVehicle(playerid)) RemovePlayerFromVehicle(playerid);
	SetPlayerPos(playerid,403.447265,2466.154296,16.506214);
	ResetPlayerWeapons(playerid);
	SetPlayerWorldBounds(playerid, 20000.0000,-20000.0000,20000.0000,-20000.0000); // Bounderies Off//
    DM[playerid] = 0;
	InMinigun[playerid] = 0;
	}
	if(InMinigun[playerid] == 0)
    }
	return 1;
    }

35012l1.png.aee1a3398b9bd9f8eec50574d2cd

Link to comment
Share on other sites

new DM[MAX_PLAYERS];
la OnPlayerCommandText pui inaintea tuturor comenzilor
if(DM[playerid] == 1) return SendClientMessage(playerid, 0xE60000FF, "Type /exit for leave DeathMatch.");
comanda /exitdm mai sus putin adik asa:
if (strcmp("/exitdm", cmdtext, true, 10) == 0)
    {
    if(InMinigun[playerid] == 1)
    {
    if(IsPlayerInAnyVehicle(playerid)) RemovePlayerFromVehicle(playerid);
   SetPlayerPos(playerid,403.447265,2466.154296,16.506214);
   ResetPlayerWeapons(playerid);
   SetPlayerWorldBounds(playerid, 20000.0000,-20000.0000,20000.0000,-20000.0000); // Bounderies Off//
    DM[playerid] = 0;
   InMinigun[playerid] = 0;
   }
   if(InMinigun[playerid] == 0)
    {
    SendClientMessage(playerid,COLOR_ULTRARED,"You are not in Minigun zone. Type /minigun");
    }
   return 1;
    }
if(DM[playerid] == 1) return SendClientMessage(playerid, 0xE60000FF, "Type /exit for leave DeathMatch.");

iar la teleportarea catre dm pune DM[playerid] = 1;

tLYRl.gif
Link to comment
Share on other sites

=-" post="43250" timestamp="1287166569"]

Comanda /nrg

nu nai inteles deci nu e de la nrg eu vreau sa zicem sunt la /minigun ma joc acolo si sa zicem dau comanda /x si sami zica type /exit for leave the deathmatch si sa nul lase sa faca comanda am incercat altfel dar a mer cateva secunde ca sa stricat si mergea doar la /minigun la celelalte nu :|

35012l1.png.aee1a3398b9bd9f8eec50574d2cd

Link to comment
Share on other sites

si cu astea ce fac? :(

am facut exact cum ai spus dar ciu ciu

C:\DOCUME~1\Nicushor\Desktop\STUNTU~1\GAMEMO~1\SU.pwn(342) : warning 202: number of arguments does not match definition
C:\DOCUME~1\Nicushor\Desktop\STUNTU~1\GAMEMO~1\SU.pwn(395) : warning 219: local variable "DM" shadows a variable at a preceding level
C:\DOCUME~1\Nicushor\Desktop\STUNTU~1\GAMEMO~1\SU.pwn(403) : error 017: undefined symbol "strtok"
C:\DOCUME~1\Nicushor\Desktop\STUNTU~1\GAMEMO~1\SU.pwn(403) : error 033: array must be indexed (variable "cmd")
C:\DOCUME~1\Nicushor\Desktop\STUNTU~1\GAMEMO~1\SU.pwn(405) : error 079: inconsistent return types (array & non-array)
C:\DOCUME~1\Nicushor\Desktop\STUNTU~1\GAMEMO~1\SU.pwn(422) : error 079: inconsistent return types (array & non-array)
C:\DOCUME~1\Nicushor\Desktop\STUNTU~1\GAMEMO~1\SU.pwn(424) : error 079: inconsistent return types (array & non-array)
C:\DOCUME~1\Nicushor\Desktop\STUNTU~1\GAMEMO~1\SU.pwn(434) : error 079: inconsistent return types (array & non-array)
C:\DOCUME~1\Nicushor\Desktop\STUNTU~1\GAMEMO~1\SU.pwn(439) : error 079: inconsistent return types (array & non-array)
C:\DOCUME~1\Nicushor\Desktop\STUNTU~1\GAMEMO~1\SU.pwn(450) : error 079: inconsistent return types (array & non-array)
C:\DOCUME~1\Nicushor\Desktop\STUNTU~1\GAMEMO~1\SU.pwn(461) : error 079: inconsistent return types (array & non-array)
C:\DOCUME~1\Nicushor\Desktop\STUNTU~1\GAMEMO~1\SU.pwn(472) : error 079: inconsistent return types (array & non-array)
C:\DOCUME~1\Nicushor\Desktop\STUNTU~1\GAMEMO~1\SU.pwn(486) : error 079: inconsistent return types (array & non-array)
C:\DOCUME~1\Nicushor\Desktop\STUNTU~1\GAMEMO~1\SU.pwn(494) : error 079: inconsistent return types (array & non-array)
C:\DOCUME~1\Nicushor\Desktop\STUNTU~1\GAMEMO~1\SU.pwn(501) : error 079: inconsistent return types (array & non-array)
C:\DOCUME~1\Nicushor\Desktop\STUNTU~1\GAMEMO~1\SU.pwn(508) : error 079: inconsistent return types (array & non-array)
C:\DOCUME~1\Nicushor\Desktop\STUNTU~1\GAMEMO~1\SU.pwn(515) : error 079: inconsistent return types (array & non-array)
C:\DOCUME~1\Nicushor\Desktop\STUNTU~1\GAMEMO~1\SU.pwn(520) : error 079: inconsistent return types (array & non-array)
C:\DOCUME~1\Nicushor\Desktop\STUNTU~1\GAMEMO~1\SU.pwn(525) : error 079: inconsistent return types (array & non-array)
C:\DOCUME~1\Nicushor\Desktop\STUNTU~1\GAMEMO~1\SU.pwn(549) : error 079: inconsistent return types (array & non-array)
C:\DOCUME~1\Nicushor\Desktop\STUNTU~1\GAMEMO~1\SU.pwn(570) : error 079: inconsistent return types (array & non-array)
C:\DOCUME~1\Nicushor\Desktop\STUNTU~1\GAMEMO~1\SU.pwn(572) : error 079: inconsistent return types (array & non-array)
C:\DOCUME~1\Nicushor\Desktop\STUNTU~1\GAMEMO~1\SU.pwn(577) : error 079: inconsistent return types (array & non-array)
C:\DOCUME~1\Nicushor\Desktop\STUNTU~1\GAMEMO~1\SU.pwn(592) : error 079: inconsistent return types (array & non-array)
C:\DOCUME~1\Nicushor\Desktop\STUNTU~1\GAMEMO~1\SU.pwn(609) : error 079: inconsistent return types (array & non-array)
C:\DOCUME~1\Nicushor\Desktop\STUNTU~1\GAMEMO~1\SU.pwn(617) : error 079: inconsistent return types (array & non-array)
C:\DOCUME~1\Nicushor\Desktop\STUNTU~1\GAMEMO~1\SU.pwn(622) : error 079: inconsistent return types (array & non-array)
C:\DOCUME~1\Nicushor\Desktop\STUNTU~1\GAMEMO~1\SU.pwn(627) : error 079: inconsistent return types (array & non-array)

Compilation aborted.Pawn compiler 3.2.3664              Copyright (c) 1997-2006, ITB CompuPhase


26 Errors.

sorry dublu post o sa fie sters topicu dupa ce rezolv :(

35012l1.png.aee1a3398b9bd9f8eec50574d2cd

Link to comment
Share on other sites

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

    • By TheGodfather
      Salut, am vrut sa adaug un nou PNS, cand intru in el ma da si scoate la alt PNS. Am adaugat PNS in baza de date, cu coordonate cu tot. In GM am asa:
      new Float: PutVehiclePNS[5][4] = {
          {1975.3617,2162.3789,10.7974,268.9753},
          {1024.8359,-1025.1244,31.8286,1.4482},
          {720.1768, -456.4775, 15.4988,1.0200},
          {720.1006,-458.8903,16.0630,0.0031}
          //2newpns
          ,{487.4117, -1741.3563, 10.8499, 173.0401}
          //2newpns
      };
      new Float: ExitVehiclePNS[5][4] = {
          {1963.0897,2162.2114,10.5474,89.7477}, 
          {1024.9517,-1034.4995,31.4208,177.5887},
          {720.0970,-466.9240,16.0688,181.9951},
          {720.1700,-467.4203,16.0688,178.9350}
          //2newpns
          ,{488.8409, -1730.2566, 10.9630, 353.4602}
          //2newpns
      };
      Ce e intre // sunt locatiile de la PNS pe care vreau sa il adaug.
      function PutVehicleInPNS(playerid, idd) {
          LastPns[playerid] = idd;
          SetVehiclePos(GetPlayerVehicleID(playerid), PutVehiclePNS[idd][0], PutVehiclePNS[idd][1], PutVehiclePNS[idd][2]);
          SetVehicleZAngle(GetPlayerVehicleID(playerid), PutVehiclePNS[idd][3]);
          GetVehicleHealth(GetPlayerVehicleID(playerid), VehicleHealth[playerid]);
          TogglePlayerControllable(playerid, false);
          PnsTimer[playerid] = gettime()+5;
          return true;
      }
      if(PnsTimer[playerid] != -1) return true;
                    for(new i = 1; i <= GpsBizzType[14]; i++) {
                            idd = BizzTypeID[14][i];
                            if(!PlayerToPoint(10, playerid, BizzInfo[idd][bEntranceX], BizzInfo[idd][bEntranceY], BizzInfo[idd][bEntranceZ]))
                                continue;
                            PutVehicleInPNS(playerid, i-1);
                            cc = true;
                            break;
                    }
      Am incercat aici la PutVehicleInPNS in loc de i-1 sa pun i dar dupa nu mai merge in celelalte bizuri de tip PNS. Bizurile de tip PNS au numarul 14 in baza de date ca biz.
    • By TheGodfather
      Salut, am un bug in care arata jucatorului in /v ca masina/masinile pe care le are sunt ocupate chiar daca nu sunt.
      Cand dau /v da return la functia asta:
      stock ShowPlayerVehicle(playerid, bool: type) {
          if(aspam[playerid] > 0) return SCMEx(playerid, COLOR_LIGHTRED, "[Command Anti-Spam] {FFFFFF}Wait %d seconds.", aspam[playerid]);
          new szTitle[2000], szDialog[2000], x = 0;
          if(Iter_Count(MyVehicle[playerid]) == 0) 
              return SCM(playerid, COLOR_LGREEN, "Error: You do not have a personal vehicle!");
          
          format(szTitle, sizeof(szTitle), "Your Vehicles {E3DE31}%d/%d", Iter_Count(MyVehicle[playerid]), GetSlots(playerid));
          strcat(szDialog, "Vehicul\tStatus\tDespawn Time\tOthers details\n");
          foreach(MyVehicle[playerid], car) {
              format(szDialog, sizeof(szDialog), "%s%s\t%s\t%s\t%s\n", szDialog, aVehicleNames[CarInfo[car][cModel]-400], CarInfo[car][Spawned] != 0 ? IsVehicleOccupied(CarInfo[car][Spawned]) ? ("{FFFF00}[occupied]") : ("{26B309}[spawned]") : ("{FF0000}[despawned]"), CheckDespawnCar(car), TotalUp(car)); 
              PlayerInfo[playerid][pCarKey][x] = car;
              x++;
          }
          ShowPlayerDialog(playerid, type ? DIALOG_STICKET : DIALOG_GARAGE, DIALOG_STYLE_TABLIST_HEADERS, szTitle, szDialog, "Ok", "Exit");
          return true;
      }
      function IsVehicleOccupied(vehicleid) return VehicleOccupied[vehicleid] != 0 ? (true) : (false);
    • By R4zvyy
      Salutare, am o problema cu vehiculele, atunci cand cumpar manual VIP, VIP Plus, Rainbow, stage si neon nu se salveaza

      ma ajuta careva?
    • By TheGodfather
      Salut, cand intru pe server si ma pune sa ma loghez, ma da la coordonatele 0, 0, 0 de la harta si nu stiu de ce. Aveti vreo idee?

    • By GamerulFOX
      Salut ! Cine ma poate ajuta cu o comanda care contorizeaza timp-ul player-ului ca atunci cand da /timecollect sa primeasca 25 000 money ! Timp-ul este de 15 minute ! Tin sa mentionez ca nu am o baza de date !
      #include <a_samp>
      #include <sscanf2>
      #include <fly>
      #include <streamer>
      #include <zcmd>
      #include <foreach>
  • 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.