Jump to content
  • 0

problema Minigun DeathMatch


Question

Posted

Am creat un DM Minigun dar nu prea functionezaz..

#include <a_samp>
if(!strcmp(cmdtext, "/minigun", true))
{
ResetPlayerWeapons(playerid);
DM[playerid] = 1;
InMinigun[playerid] = 1;
SetPlayerRandomSpawnMinigun(playerid);
GivePlayerWeapon(playerid,38 , 9999);
GameTextForPlayer(playerid,"~r~~h~WeLcOmE To MiNiGuN",3000,5);
    GetPlayerName(playerid, pname, sizeof (pname));
    format(string3, sizeof(string3),"%s HaS GoNe To MiNiGuN ~r~(/minigun)~p~", pname);
    TextDrawDestroy(Text:Reclama);
    Reclama = TextDrawCreate(250.000000, 435.000000, " ");
    TextDrawFont(Reclama, 1);
    TextDrawLetterSize(Reclama, 0.300000, 1.000000);
    TextDrawColor(Reclama, 0x00C2ECFF);
    TextDrawSetOutline(Reclama, 1);
    TextDrawSetProportional(Reclama, 1);
    TextDrawSetShadow(Reclama, 1);
    TextDrawShowForAll(Reclama);
    TextDrawSetString(Reclama, string3);
    SetTimer("reclamatime",10000,false);
SetPlayerFacingAngle(playerid, 0.0);
SetPlayerInterior(playerid, 0);
SetPlayerWorldBounds(playerid, 1337, 1303.0999755859, 2166.3999023438, 10.699999809265);
SendClientMessage(playerid, 0x6AF7E1FF, " If you are caught fire zone STUNT These weapons MAKE JAIL / kick / ban permanently!");
SendClientMessage(playerid,COLOR_GREEN, "If you want to get out of DM use the command /exitdm!");
return 1;
}

SI imi da trei erori:

C:\Users\Hunor\Desktop\minigun.pwn(2) : error 010: invalid function or declaration
C:\Users\Hunor\Desktop\minigun.pwn(8) : error 021: symbol already defined: "GivePlayerWeapon"
C:\Users\Hunor\Desktop\minigun.pwn(28) : error 010: invalid function or declaration
Pawn compiler 3.2.3664	 	 	Copyright (c) 1997-2006, ITB CompuPhase

va rog ajuta-tima

2 answers to this question

Recommended Posts

Posted

Nu functioneaza ? :S

De ce ?

Uite :

[pawn]if(strcmp(cmdtext, "/minigun", true) == 0)

  {

        if(DMZone[playerid] == 1) return ShowPlayerDialog(playerid,TELEWARN,DIALOG_STYLE_MSGBOX,"Eroare:","Teleportare esuata!\n\n-Scuze dar nu te poti teleporta in alta zona cand esti in DM,scrie /kill pentru a iesi din DM.","OK","OMOARA-MA");

        DMZone[playerid] = 1;

        new rand = random(sizeof(RandomPlayerSpawns));

    SetPlayerPos(playerid, RandomPlayerSpawnsMinigun[rand][0], RandomPlayerSpawnsMinigun[rand][1], RandomPlayerSpawnsMinigun[rand][2]);

      SetPlayerInterior(playerid, 0);

      GivePlayerWeapon(playerid, 38, 100000);

      return 1;

  }[/pawn]

Scriptez for $$, Detalii,add sampofficial.

logonou.png

Guest
This topic is now closed to further replies.
×
×
  • 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.