*** Terrible Title Removed
#1

pawn Код:
C:\Users\Pauli\Desktop\[Samp] Newport City Roleplay\gamemodes\newportcityrp.pwn(63431) : warning 202: number of arguments does not match definition
C:\Users\Pauli\Desktop\[Samp] Newport City Roleplay\gamemodes\newportcityrp.pwn(63431) : warning 202: number of arguments does not match definition
C:\Users\Pauli\Desktop\[Samp] Newport City Roleplay\gamemodes\newportcityrp.pwn(63431) : warning 202: number of arguments does not match definition
C:\Users\Pauli\Desktop\[Samp] Newport City Roleplay\gamemodes\newportcityrp.pwn(63432) : warning 202: number of arguments does not match definition
C:\Users\Pauli\Desktop\[Samp] Newport City Roleplay\gamemodes\newportcityrp.pwn(63432) : warning 202: number of arguments does not match definition
C:\Users\Pauli\Desktop\[Samp] Newport City Roleplay\gamemodes\newportcityrp.pwn(63432) : warning 202: number of arguments does not match definition
C:\Users\Pauli\Desktop\[Samp] Newport City Roleplay\gamemodes\newportcityrp.pwn(63440) : warning 202: number of arguments does not match definition
C:\Users\Pauli\Desktop\[Samp] Newport City Roleplay\gamemodes\newportcityrp.pwn(63440) : warning 202: number of arguments does not match definition
C:\Users\Pauli\Desktop\[Samp] Newport City Roleplay\gamemodes\newportcityrp.pwn(63440) : warning 202: number of arguments does not match definition
C:\Users\Pauli\Desktop\[Samp] Newport City Roleplay\gamemodes\newportcityrp.pwn(63441) : warning 202: number of arguments does not match definition
C:\Users\Pauli\Desktop\[Samp] Newport City Roleplay\gamemodes\newportcityrp.pwn(63441) : warning 202: number of arguments does not match definition
C:\Users\Pauli\Desktop\[Samp] Newport City Roleplay\gamemodes\newportcityrp.pwn(63441) : warning 202: number of arguments does not match definition
C:\Users\Pauli\Desktop\[Samp] Newport City Roleplay\gamemodes\newportcityrp.pwn(63449) : warning 202: number of arguments does not match definition
C:\Users\Pauli\Desktop\[Samp] Newport City Roleplay\gamemodes\newportcityrp.pwn(63449) : warning 202: number of arguments does not match definition
C:\Users\Pauli\Desktop\[Samp] Newport City Roleplay\gamemodes\newportcityrp.pwn(63449) : warning 202: number of arguments does not match definition
C:\Users\Pauli\Desktop\[Samp] Newport City Roleplay\gamemodes\newportcityrp.pwn(63450) : warning 202: number of arguments does not match definition
C:\Users\Pauli\Desktop\[Samp] Newport City Roleplay\gamemodes\newportcityrp.pwn(63450) : warning 202: number of arguments does not match definition
C:\Users\Pauli\Desktop\[Samp] Newport City Roleplay\gamemodes\newportcityrp.pwn(63450) : warning 202: number of arguments does not match definition
C:\Users\Pauli\Desktop\[Samp] Newport City Roleplay\gamemodes\newportcityrp.pwn(63467) : warning 202: number of arguments does not match definition
C:\Users\Pauli\Desktop\[Samp] Newport City Roleplay\gamemodes\newportcityrp.pwn(63467) : warning 202: number of arguments does not match definition
C:\Users\Pauli\Desktop\[Samp] Newport City Roleplay\gamemodes\newportcityrp.pwn(63467) : warning 202: number of arguments does not match definition
C:\Users\Pauli\Desktop\[Samp] Newport City Roleplay\gamemodes\newportcityrp.pwn(63468) : warning 202: number of arguments does not match definition
C:\Users\Pauli\Desktop\[Samp] Newport City Roleplay\gamemodes\newportcityrp.pwn(63468) : warning 202: number of arguments does not match definition
C:\Users\Pauli\Desktop\[Samp] Newport City Roleplay\gamemodes\newportcityrp.pwn(63468) : warning 202: number of arguments does not match definition
C:\Users\Pauli\Desktop\[Samp] Newport City Roleplay\gamemodes\newportcityrp.pwn(63475) : warning 202: number of arguments does not match definition
C:\Users\Pauli\Desktop\[Samp] Newport City Roleplay\gamemodes\newportcityrp.pwn(63475) : warning 202: number of arguments does not match definition
C:\Users\Pauli\Desktop\[Samp] Newport City Roleplay\gamemodes\newportcityrp.pwn(63475) : warning 202: number of arguments does not match definition
C:\Users\Pauli\Desktop\[Samp] Newport City Roleplay\gamemodes\newportcityrp.pwn(63476) : warning 202: number of arguments does not match definition
C:\Users\Pauli\Desktop\[Samp] Newport City Roleplay\gamemodes\newportcityrp.pwn(63476) : warning 202: number of arguments does not match definition
C:\Users\Pauli\Desktop\[Samp] Newport City Roleplay\gamemodes\newportcityrp.pwn(63476) : warning 202: number of arguments does not match definition
C:\Users\Pauli\Desktop\[Samp] Newport City Roleplay\gamemodes\newportcityrp.pwn(63483) : warning 202: number of arguments does not match definition
C:\Users\Pauli\Desktop\[Samp] Newport City Roleplay\gamemodes\newportcityrp.pwn(63483) : warning 202: number of arguments does not match definition
C:\Users\Pauli\Desktop\[Samp] Newport City Roleplay\gamemodes\newportcityrp.pwn(63483) : warning 202: number of arguments does not match definition
C:\Users\Pauli\Desktop\[Samp] Newport City Roleplay\gamemodes\newportcityrp.pwn(63484) : warning 202: number of arguments does not match definition
C:\Users\Pauli\Desktop\[Samp] Newport City Roleplay\gamemodes\newportcityrp.pwn(63484) : warning 202: number of arguments does not match definition
C:\Users\Pauli\Desktop\[Samp] Newport City Roleplay\gamemodes\newportcityrp.pwn(63484) : warning 202: number of arguments does not match definition
Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase

Header size:          16068 bytes
Code size:          3837636 bytes
Data size:         13123776 bytes
Stack/heap size:      16384 bytes; estimated max. usage=7316 cells (29264 bytes)
Total requirements:16993864 bytes

36 Warnings.

LINES!


pawn Код:
if (IsPlayerInRangeOfPoint(playerid, 5,239.5887,117.5612,1003.2188))
        {
            MoveDynamicObject(uks1, 239.59159851074, 115.2417678833, 1002.21875, 3.5000, 0.0, 0.0, 90.0);
            MoveDynamicObject(uks2, 239.5599822998, 119.92346191406, 1002.21875, 3.5000, 0.0, 0.0, 269.7);
            SendClientMessage(playerid, COLOR_YELLOW2,"Please close the door!");
            GetPlayerName(playerid, sendername, sizeof(sendername));
            format(string, sizeof(string), "* %s takes out a pair of keys and opens the door.", sendername);
            ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
        }
        if (IsPlayerInRangeOfPoint(playerid, 5,253.1796,109.0689,1003.2188))
        {
            MoveDynamicObject(uks3, 253.23233032227, 106.74715423584, 1002.21875, 3.5000, 0.0, 0.0, 90.0);
            MoveDynamicObject(uks4, 253.17510986328, 111.41488647461, 1002.21875, 3.5000, 0.0, 0.0, 270.1);
            SendClientMessage(playerid, COLOR_YELLOW2,"Please close the door!");
            GetPlayerName(playerid, sendername, sizeof(sendername));
            format(string, sizeof(string), "* %s takes out a pair of keys and opens the door.", sendername);
            ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
        }
        if (IsPlayerInRangeOfPoint(playerid, 7,219.33728027344, 116.49627685547, 998.015625))
        {
            MoveDynamicObject(uks5, 214.35855102539, 116.49627685547, 998.015625, 3.5000, 0.0, 0.0, 0);
            MoveDynamicObject(uks6, 221.33728027344, 116.49627685547, 998.015625, 3.5000, 0.0, 0.0, 180);
            SendClientMessage(playerid, COLOR_YELLOW2,"Please close the door!");
            GetPlayerName(playerid, sendername, sizeof(sendername));
            format(string, sizeof(string), "* %s takes out a pair of keys and opens the door.", sendername);
            ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
        }
      }
      else return SendClientMessage(playerid, COLOR_GREY,"You don't have a remote control to open that.");
      return 1;
    }

    if(strcmp(cmd,"/doorclose", true) == 0) // by Ellis
    {
      if(PlayerInfo[playerid][pLeader] == 1 || PlayerInfo[playerid][pMember] == 1)
      {
        if (IsPlayerInRangeOfPoint(playerid, 5,239.5887,117.5612,1003.2188))
        {
            MoveDynamicObject(uks1, 239.5704498291, 116.05169677734, 1002.21875, 3.5000, 0.0, 0.0, 90.0);
            MoveDynamicObject(uks2, 239.55421447754, 119.05331420898, 1002.21875, 3.5000, 0.0, 0.0, 269.7);
            GetPlayerName(playerid, sendername, sizeof(sendername));
            format(string, sizeof(string), "* %s closes the door and puts the keys into his/her pocket", sendername);
            ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
        }
        if (IsPlayerInRangeOfPoint(playerid, 5,253.1796,109.0689,1003.2188))
        {
            MoveDynamicObject(uks3, 253.22872924805, 107.59692382813, 1002.21875, 3.5000, 0.0, 0.0, 90.0);
            MoveDynamicObject(uks4, 253.18321228027, 110.60181427002, 1002.21875, 3.5000, 0.0, 0.0, 270.1);
            GetPlayerName(playerid, sendername, sizeof(sendername));
            format(string, sizeof(string), "* %s closes the door and puts the keys into his/her pocket", sendername);
            ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
        }
        if (IsPlayerInRangeOfPoint(playerid, 7,219.33728027344, 116.49627685547, 998.015625))
        {
            MoveDynamicObject(uks5, 216.35855102539, 116.49627685547, 998.015625, 3.5000, 0.0, 0.0, 0);
            MoveDynamicObject(uks6, 219.33728027344, 116.49627685547, 998.015625, 3.5000, 0.0, 0.0, 180);
            GetPlayerName(playerid, sendername, sizeof(sendername));
            format(string, sizeof(string), "* %s closes the door and puts the keys into his/her pocket", sendername);
            ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
        }
Reply
#2

After the first " if " change the others to else if.
PS: you have some brackets fucekd up
Edit: Remove that return 1; from the first cmd.
Reply
#3

It is streamer folt, i was the same, changed streamer.ini and all works.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)