Jump to content
  • 0

Spawn DM Error


vampir_MD

Question

Am si eu codu ista da imi da eror da nustiu ce eror ee am incercat sal defin si tot nimik

new Minigun[MAX_PLAYERS];
Aista lam pus in comand de minigun
Minigun[playerid] = 1;
public OnPlayerSpawn(playerid)
if(Minigun[playerid] == 1)
    {
    SetPlayerRandomSpawnMinigun(playerid);
   	ResetPlayerWeapons(playerid);
	DM[playerid] = 1;
	GivePlayerWeapon(playerid,38 , 9999);
	SetPlayerWorldBounds(playerid, 1439.348, 1271.44, 2235.263, 2080.541);
    }
Si error
C:\Users\vampir\Desktop\server 3c\gamemodes\DKR.pwn(2578) : error 017: undefined symbol "SetPlayerRandomSpawnMinigun"
C:\Users\vampir\Desktop\server 3c\gamemodes\DKR.pwn(2580) : error 029: invalid expression, assumed zero
C:\Users\vampir\Desktop\server 3c\gamemodes\DKR.pwn(2580) : error 029: invalid expression, assumed zero
C:\Users\vampir\Desktop\server 3c\gamemodes\DKR.pwn(2580) : warning 215: expression has no effect
C:\Users\vampir\Desktop\server 3c\gamemodes\DKR.pwn(2580) : error 001: expected token: ";", but found "]"
C:\Users\vampir\Desktop\server 3c\gamemodes\DKR.pwn(2580) : fatal error 107: too many error messages on one line

Link to comment
Share on other sites

3 answers to this question

Recommended Posts

Ruben" post="60949" timestamp="1300276378"]

Incearca

    if(Minigun[playerid] == 1)
    {
   	ResetPlayerWeapons(playerid);
	DM[playerid] = 1;
	GivePlayerWeapon(playerid,38 , 9999);
	SetPlayerWorldBounds(playerid, 1439.348, 1271.44, 2235.263, 2080.541);
    return 1;
	}

fara SetPlayerRandomSpawnMinigun(playerid); nu merge commandu

Link to comment
Share on other sites

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

    • By CristianLMAO
      Salut!
      Astazi o sa va prezint primul meu sistem pus pe acest site, si o sa va explic ce face fiecare lucru.
      Hai sa incepem.
      Sistemul arata cam asa:

      (dialogul este pozitionat mai in drapta din cauza rezolutiei mele)
      IMPORTANT:
      IN CODUL DE MAI JOS ESTE DECAT CE MAI TREBUIE ADAUGAT, NU TOT GAMEMODUL!!
      TUTORIAL:
       
      //punem include-urile care ne trebuie la acest sistem #include <zcmd>  
      //prima data facem o comanda, dar atentie, ACEASTA COMANDA O POATE FOLOSI ORICINE, daca doriti ca doar admini sa o poata folosi, folositi comanda hasurata! CMD:v(playerid, params[]){ ShowPlayerDialog(playerid, 4, DIALOG_STYLE_INPUT, "Spawn car", "Write your car id: (Min. 400 / Max. 611)", "Spawn", "Close"); //cand scriem "/v" apare acest dialog return 1; } //DACA DORITI SA FIE COMANDA ASTA ACCESIBILA DOAR LA ADMIN: //CMD:v(playerid, params[]){ // // if (IsPlayerAdmin(playerid)) // daca jucatorul este admin: // { // ShowPlayerDialog(playerid, 4, DIALOG_STYLE_INPUT, "Spawn car", "Write your car id: (Min. 400 / Max. 611)", "Spawn", "Close"); //cand scriem "/v" apare acest dialog // } // else{ //daca nu: // SendClientMessage(playerid, 0xFF000090, "You're not admin!"); // } // return 1; //}  
      public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[]){ if(dialogid == 1){ // cand raspunde la dialogul cu id-ul 1 se intampla asta: if(!response) return SendClientMessage(playerid, 0xFF000099, "You closed the menu!"); // daca apasa pe butonul de inchidere, acest meniu o sa se inchida. if(strval(inputtext) < 400) return SendClientMessage(playerid, 0xFF000099, "Your car id is under 400!"); // Daca id-ul scris este mai mic de 400 o sa scrie asta if(strval(inputtext) > 611) return SendClientMessage(playerid, 0xFF000099, "Your car id is over 611!"); // Daca id-ul scris este mai mare de 611 o sa scrie asta // inputtext inseamna ce a scris jucatorul in text-box. new Float:X; new Float:Y; new Float:Z; GetPlayerPos(playerid,X,Y,Z); // aici seteaza valoarea lui X, Y si Z in coordonatele juactorului CreateVehicle(strval(inputtext),X,Y+5,Z,1,1,1,90000); //spawneaza masina cu id-ul din textbox, la coordonatele playerului return 1; } }  
      Daca este sa fi omis ceva, sau daca doriti sa imbunatatesc acest sistem, puteti spune in comentarii.
    • By Matei02Mihai
      Salut. Am vrut sa fac un gamemode micut pentru vizualizarea modpack-urilor, dar atunci cand pornesc serverul, imi da eroarea <<[09:35:17] Script[gamemodes/modpacks.amx]: Run time error 19: "File or function is not found">>. Am incercat sa pun acelasi gamemode pe un alt server. Acolo imi merge cum trebuie. Daca intru pe server cu acea eroare, face bugul ala clasic: te da sub pamant in spate la farmer, iar dupa te spawneaza in acelasi loc, dar pe pamant. Am incercat mai multe metode cu care credeam ca pot fixa bugul, cum ar fi:
      - deschiderea serverului cu drepturi de administrator;
      - schimbarea locatiei serverului;
      - instalarea .net framework 3.5;
      - reacerea serverului
      - dezactivare optiunii "Doar in citire"
    • By Andrei SA-MP
      public OnPlayerConnect(playerid) {
           gQuery[0] = EOS;
           mysql_format(SQL, gQuery, sizeof(gQuery), "SELECT * FROM `users` WHERE `Name` = '%s' LIMIT 1', GetName(playerid));
           mysql_tquery(SQL, gQuery, "checkAccount', "i", playerid);
           return 1;
    • By Wreeper
      Linia in cauza: SetPlayerName(id, amount);
      Daca scot chestia asta, merge total perfect functia..
      De ce se intampla asta?
    • By Andrei SA-MP
      SQL = mysql_connect("localhost", "root", "proiect", "");
  • 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.