Jump to content
  • 0

Problema script


meoro

Question

Salutare

Eu nu prea ma pricep la script cam deloc... Cand compilez compilez un gm imi da uroatoarele oerori:

D:\Jocuri\Server SA-MP\gamemodes\SDR 2.pwn(1463) : error 017: undefined symbol "SetDisabledWeapons"
D:\Jocuri\Server SA-MP\gamemodes\SDR 2.pwn(2292) : error 025: function heading differs from prototype
D:\Jocuri\Server SA-MP\gamemodes\SDR 2.pwn(2298) : error 025: function heading differs from prototype
D:\Jocuri\Server SA-MP\gamemodes\SDR 2.pwn(2304) : error 025: function heading differs from prototype
D:\Jocuri\Server SA-MP\gamemodes\SDR 2.pwn(8911) : warning 235: public function lacks forward declaration (symbol "OnPlayerPrivmsg")
Pawn compiler 3.2.3664	 	 	Copyright (c) 1997-2006, ITB CompuPhase


4 Errors.
Liniilea acela sunt: 1462
	SetDisabledWeapons(43,44,45);
2292
	SetPlayerHealth(playerid, -999);
2298
public OnVehiclePaintjob(vehicleid,paintjobid)
2304
public OnVehicleRespray(vehicleid,color1,color2)
8911
public OnPlayerPrivmsg(playerid, recieverid, text[])

Va rog, imi puteti spune si mie care sunt greselile ? :-s

Link to comment
Share on other sites

2 answers to this question

Recommended Posts

	SetDisabledWeapons(43,44,45);
Nu mai exista in SA:MP aceasta functie, sterge-o.
	SetPlayerHealth(playerid, -999);
incearca sa pui doar
	SetPlayerHealth(playerid, 0);

public OnVehiclePaintjob(vehicleid,paintjobid)
inlocuieste cu
public OnVehiclePaintjob(playerid, vehicleid, paintjobid)

public OnVehicleRespray(vehicleid,color1,color2)
inlocuieste cu
public OnVehicleRespray(playerid, vehicleid, color1, color2)

public OnPlayerPrivmsg(playerid, recieverid, text[])

Sterge toata functia, a fost scoasa in SA:MP




Data viitoare intra pe http://wiki.sa-mp.com si cauta functiile respective.

PS: Bun venit in lumea 'scriptului'.

Link to comment
Share on other sites

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

    • By faze amuzante
      Sakut, am inceput un edit la gamemode t4p si cand trag cu arma imi da server close the conections.V-a rog frumos sa m-a ajutati ❤️
      Multumesc aniticipat ! 

    • By faze amuzante
      Salut, ma poate ajuta cine sa nu se mai miste actor, cand dau cu masina peste el se misca
      codul:
          FondatorActor = CreateActor(211, 1803.1582,-1849.5033,13.5781,185.4817);
          SetActorInvulnerable(FondatorActor, true);
          //ApplyActorAnimation( "ON_LOOKERS", "wave_loop", 4.0, 1, 0, 0, 0, 0);
          ApplyActorAnimation(FondatorActor, "ON_LOOKERS", "wave_loop", 4.0, 1, 0, 0, 0, 0);
          return 1;
      }
      Multumesc anticipat

    • By faze amuzante
      Salut, am si eu o problema, cand vreau sa m-a conectez pe server, si s-a bag parola imi spune ca mai am 2 incercari, fara sa fac nimic.Tin sa mentionez ca dupa ce bag parola nu am nici o problema, si nu nu apas pe nimic pe tastatura, imediat dupa ce m-am conectat imi apare, si nu reusesc sa ii dau de cap.V-a las o imagine mai jos.tin sa mentionez ca este gamemode burned
      Multumesc anticipat!

    • By faze amuzante
      Salut, cand dau /setadmin unui jucator acel jucator primeste functia dar dupa ce da relog nu mai are acea functie de admin, ajutorrr
      Multumesc Anticipat!
      COMANDA:
       
       
      YCMD:setadmin(playerid, params[], help) {
          new id, adminlevel, gString[120];
          if(PlayerInfo[playerid][pAdmin] < 6)
              return SCM(playerid, COLOR_WHITE, AdminOnly);
          if(sscanf(params, "ui", id, adminlevel))
              return SCM(playerid, COLOR_GREY, "USAGE: {FFFFFF}/setadmin <playerid/name> <Admin Level>");
          if(!IsPlayerConnected(id) || id == INVALID_PLAYER_ID)
              return SCM(playerid, COLOR_GREY, "Acel player nu este conectat.");
          if(adminlevel < 0 || adminlevel > 6)
              return SCM(playerid, COLOR_GREY, "Invalid admin level. 0-6");
          if(PlayerInfo[id][pAdmin] > PlayerInfo[playerid][pAdmin])
              return SCM(playerid, COLOR_GREY, "Nu poti folosi aceasta comanda pe acel player. Are admin level mai mare.");
          format(gString, 80, "Ai fost promovat la admin %d de %s", adminlevel, GetName(playerid));
          SCM(id, COLOR_LIGHTBLUE, gString);
          format(gString, 100, "AdmCmd: %s i-a setat lui %s admin level %d.", GetName(playerid), GetName(id), adminlevel);
          SendAdminHelperMessage(COLOR_LOGS, gString);
          if(adminlevel == 0) {
              PlayerInfo[id][pAW] = 0;
              UpdateVar(id, "AW", 0);
              SpecFaction[id] = 0;
              StopFly(playerid);
              UsedFly[playerid] = 0;
              SetPlayerHealthEx(playerid, 100);
              Iter_Remove(PlayerAdmins, id);
          }
          Iter_Add(PlayerAdmins, id);
          finishAchievement(id, 27);
          PlayerInfo[id][pAdmin] = adminlevel;
          new gQuery[180];
          if(adminlevel >= 1)
              format(gQuery, sizeof(gQuery), "UPDATE users SET `Admin`='%d', `Security`='%s', `HelpedPlayers`='0' WHERE `ID`='%d'", PlayerInfo[id][pAdmin]/*, MD5_Hash(DEFAULT_PASSWORD)*/, PlayerInfo[id][pSQLID]);
          else
              UpdateVar(id, "Admin", PlayerInfo[id][pAdmin]);
          mysql_tquery(SQL, gQuery, "", "");
          SetPVarInt(id, "SecurityPlayer", 0);
          return true;
      }
    • By faze amuzante
      Salut, are cineva idee cum fac un tabel gen tow vehicle sa fac un despawn vechicle. si as vrea daca ma poate ajuta cineva ca dupa ce ies de pe server sa se despawneze

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