Jump to content
  • 0

Inca ceva Warning 202


Question

Posted

Warning 202 de la linia 12---40

[pawn]// This is a comment

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

//#define FILTERSCRIPT

#include <a_samp>

#include <streamer>

#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

3 answers to this question

Recommended Posts

Posted

scrie si ce warn e...in + trebuia sa faci la topicul vechi nu sa faci alt topic....

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

 

Posted

Warning-uri complimare:

C:\Documents and Settings\SkyNet\Desktop\ATM.pwn(12) : warning 202: number of arguments does not match definition

C:\Documents and Settings\SkyNet\Desktop\ATM.pwn(12) : warning 202: number of arguments does not match definition

C:\Documents and Settings\SkyNet\Desktop\ATM.pwn(12) : warning 202: number of arguments does not match definition

C:\Documents and Settings\SkyNet\Desktop\ATM.pwn(13) : warning 202: number of arguments does not match definition

C:\Documents and Settings\SkyNet\Desktop\ATM.pwn(13) : warning 202: number of arguments does not match definition

C:\Documents and Settings\SkyNet\Desktop\ATM.pwn(13) : warning 202: number of arguments does not match definition

C:\Documents and Settings\SkyNet\Desktop\ATM.pwn(14) : warning 202: number of arguments does not match definition

C:\Documents and Settings\SkyNet\Desktop\ATM.pwn(14) : warning 202: number of arguments does not match definition

C:\Documents and Settings\SkyNet\Desktop\ATM.pwn(14) : warning 202: number of arguments does not match definition

C:\Documents and Settings\SkyNet\Desktop\ATM.pwn(15) : warning 202: number of arguments does not match definition

C:\Documents and Settings\SkyNet\Desktop\ATM.pwn(15) : warning 202: number of arguments does not match definition

C:\Documents and Settings\SkyNet\Desktop\ATM.pwn(15) : warning 202: number of arguments does not match definition

C:\Documents and Settings\SkyNet\Desktop\ATM.pwn(16) : warning 202: number of arguments does not match definition

C:\Documents and Settings\SkyNet\Desktop\ATM.pwn(16) : warning 202: number of arguments does not match definition

C:\Documents and Settings\SkyNet\Desktop\ATM.pwn(16) : warning 202: number of arguments does not match definition

C:\Documents and Settings\SkyNet\Desktop\ATM.pwn(17) : warning 202: number of arguments does not match definition

C:\Documents and Settings\SkyNet\Desktop\ATM.pwn(17) : warning 202: number of arguments does not match definition

C:\Documents and Settings\SkyNet\Desktop\ATM.pwn(17) : warning 202: number of arguments does not match definition

C:\Documents and Settings\SkyNet\Desktop\ATM.pwn(18) : warning 202: number of arguments does not match definition

C:\Documents and Settings\SkyNet\Desktop\ATM.pwn(18) : warning 202: number of arguments does not match definition

C:\Documents and Settings\SkyNet\Desktop\ATM.pwn(18) : warning 202: number of arguments does not match definition

C:\Documents and Settings\SkyNet\Desktop\ATM.pwn(19) : warning 202: number of arguments does not match definition

C:\Documents and Settings\SkyNet\Desktop\ATM.pwn(19) : warning 202: number of arguments does not match definition

C:\Documents and Settings\SkyNet\Desktop\ATM.pwn(19) : warning 202: number of arguments does not match definition

C:\Documents and Settings\SkyNet\Desktop\ATM.pwn(20) : warning 202: number of arguments does not match definition

C:\Documents and Settings\SkyNet\Desktop\ATM.pwn(20) : warning 202: number of arguments does not match definition

C:\Documents and Settings\SkyNet\Desktop\ATM.pwn(20) : warning 202: number of arguments does not match definition

C:\Documents and Settings\SkyNet\Desktop\ATM.pwn(21) : warning 202: number of arguments does not match definition

C:\Documents and Settings\SkyNet\Desktop\ATM.pwn(21) : warning 202: number of arguments does not match definition

C:\Documents and Settings\SkyNet\Desktop\ATM.pwn(21) : warning 202: number of arguments does not match definition

C:\Documents and Settings\SkyNet\Desktop\ATM.pwn(22) : warning 202: number of arguments does not match definition

C:\Documents and Settings\SkyNet\Desktop\ATM.pwn(22) : warning 202: number of arguments does not match definition

C:\Documents and Settings\SkyNet\Desktop\ATM.pwn(22) : warning 202: number of arguments does not match definition

C:\Documents and Settings\SkyNet\Desktop\ATM.pwn(23) : warning 202: number of arguments does not match definition

C:\Documents and Settings\SkyNet\Desktop\ATM.pwn(23) : warning 202: number of arguments does not match definition

C:\Documents and Settings\SkyNet\Desktop\ATM.pwn(23) : warning 202: number of arguments does not match definition

C:\Documents and Settings\SkyNet\Desktop\ATM.pwn(24) : warning 202: number of arguments does not match definition

C:\Documents and Settings\SkyNet\Desktop\ATM.pwn(24) : warning 202: number of arguments does not match definition

C:\Documents and Settings\SkyNet\Desktop\ATM.pwn(24) : warning 202: number of arguments does not match definition

C:\Documents and Settings\SkyNet\Desktop\ATM.pwn(25) : warning 202: number of arguments does not match definition

C:\Documents and Settings\SkyNet\Desktop\ATM.pwn(25) : warning 202: number of arguments does not match definition

C:\Documents and Settings\SkyNet\Desktop\ATM.pwn(25) : warning 202: number of arguments does not match definition

C:\Documents and Settings\SkyNet\Desktop\ATM.pwn(26) : warning 202: number of arguments does not match definition

C:\Documents and Settings\SkyNet\Desktop\ATM.pwn(26) : warning 202: number of arguments does not match definition

C:\Documents and Settings\SkyNet\Desktop\ATM.pwn(26) : warning 202: number of arguments does not match definition

C:\Documents and Settings\SkyNet\Desktop\ATM.pwn(27) : warning 202: number of arguments does not match definition

C:\Documents and Settings\SkyNet\Desktop\ATM.pwn(27) : warning 202: number of arguments does not match definition

C:\Documents and Settings\SkyNet\Desktop\ATM.pwn(27) : warning 202: number of arguments does not match definition

C:\Documents and Settings\SkyNet\Desktop\ATM.pwn(28) : warning 202: number of arguments does not match definition

C:\Documents and Settings\SkyNet\Desktop\ATM.pwn(28) : warning 202: number of arguments does not match definition

C:\Documents and Settings\SkyNet\Desktop\ATM.pwn(28) : warning 202: number of arguments does not match definition

C:\Documents and Settings\SkyNet\Desktop\ATM.pwn(29) : warning 202: number of arguments does not match definition

C:\Documents and Settings\SkyNet\Desktop\ATM.pwn(29) : warning 202: number of arguments does not match definition

C:\Documents and Settings\SkyNet\Desktop\ATM.pwn(29) : warning 202: number of arguments does not match definition

C:\Documents and Settings\SkyNet\Desktop\ATM.pwn(30) : warning 202: number of arguments does not match definition

C:\Documents and Settings\SkyNet\Desktop\ATM.pwn(30) : warning 202: number of arguments does not match definition

C:\Documents and Settings\SkyNet\Desktop\ATM.pwn(30) : warning 202: number of arguments does not match definition

C:\Documents and Settings\SkyNet\Desktop\ATM.pwn(31) : warning 202: number of arguments does not match definition

C:\Documents and Settings\SkyNet\Desktop\ATM.pwn(31) : warning 202: number of arguments does not match definition

C:\Documents and Settings\SkyNet\Desktop\ATM.pwn(31) : warning 202: number of arguments does not match definition

C:\Documents and Settings\SkyNet\Desktop\ATM.pwn(32) : warning 202: number of arguments does not match definition

C:\Documents and Settings\SkyNet\Desktop\ATM.pwn(32) : warning 202: number of arguments does not match definition

C:\Documents and Settings\SkyNet\Desktop\ATM.pwn(32) : warning 202: number of arguments does not match definition

C:\Documents and Settings\SkyNet\Desktop\ATM.pwn(33) : warning 202: number of arguments does not match definition

C:\Documents and Settings\SkyNet\Desktop\ATM.pwn(33) : warning 202: number of arguments does not match definition

C:\Documents and Settings\SkyNet\Desktop\ATM.pwn(33) : warning 202: number of arguments does not match definition

C:\Documents and Settings\SkyNet\Desktop\ATM.pwn(34) : warning 202: number of arguments does not match definition

C:\Documents and Settings\SkyNet\Desktop\ATM.pwn(34) : warning 202: number of arguments does not match definition

C:\Documents and Settings\SkyNet\Desktop\ATM.pwn(34) : warning 202: number of arguments does not match definition

C:\Documents and Settings\SkyNet\Desktop\ATM.pwn(35) : warning 202: number of arguments does not match definition

C:\Documents and Settings\SkyNet\Desktop\ATM.pwn(35) : warning 202: number of arguments does not match definition

C:\Documents and Settings\SkyNet\Desktop\ATM.pwn(35) : warning 202: number of arguments does not match definition

C:\Documents and Settings\SkyNet\Desktop\ATM.pwn(36) : warning 202: number of arguments does not match definition

C:\Documents and Settings\SkyNet\Desktop\ATM.pwn(36) : warning 202: number of arguments does not match definition

C:\Documents and Settings\SkyNet\Desktop\ATM.pwn(36) : warning 202: number of arguments does not match definition

C:\Documents and Settings\SkyNet\Desktop\ATM.pwn(37) : warning 202: number of arguments does not match definition

C:\Documents and Settings\SkyNet\Desktop\ATM.pwn(37) : warning 202: number of arguments does not match definition

C:\Documents and Settings\SkyNet\Desktop\ATM.pwn(37) : warning 202: number of arguments does not match definition

C:\Documents and Settings\SkyNet\Desktop\ATM.pwn(38) : warning 202: number of arguments does not match definition

C:\Documents and Settings\SkyNet\Desktop\ATM.pwn(38) : warning 202: number of arguments does not match definition

C:\Documents and Settings\SkyNet\Desktop\ATM.pwn(38) : warning 202: number of arguments does not match definition

C:\Documents and Settings\SkyNet\Desktop\ATM.pwn(39) : warning 202: number of arguments does not match definition

C:\Documents and Settings\SkyNet\Desktop\ATM.pwn(39) : warning 202: number of arguments does not match definition

C:\Documents and Settings\SkyNet\Desktop\ATM.pwn(39) : warning 202: number of arguments does not match definition

C:\Documents and Settings\SkyNet\Desktop\ATM.pwn(40) : warning 202: number of arguments does not match definition

C:\Documents and Settings\SkyNet\Desktop\ATM.pwn(40) : warning 202: number of arguments does not match definition

C:\Documents and Settings\SkyNet\Desktop\ATM.pwn(40) : warning 202: number of arguments does not match definition

Pawn compiler 3.2.3664              Copyright © 1997-2006, ITB CompuPhase

87 Warnings.

560x95_F01616_1625F2_030303_000000.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.