ZCMD problem.
#1

This is my script:

TOP OF SCRIPT
pawn Код:
#include <a_samp>
#include <Dini>
#include <dudb>
#include <cps>
#include <zcmd> // zcmd
#include <sscanf2> // sscanf2 + plugin
UNDER: ONPlayerClickPlayer (( The last call-back ))
pawn Код:
CMD:accent(playerid, params[])
{
    new accent;
    if(sscanf(params, "d", accent))
    {
        SendClientMessage(playerid, White, "USAGE: /accent [accent ID]");
        SendClientMessage(playerid, Green, "Available Names: Normal [1], British [2], Asian [4], Scottish [6], Irish [7], Russian [8]");
        SendClientMessage(playerid, Green, "Available Accents: American [9], Spanish [10], Southern [11], Italian [13], Gangsta [14], Australian [15]");
        SendClientMessage(playerid, Green, "Available Accents: Arabic [16], Balkan [17], Canadian [18] Jamaican [19] Israeli [20]");
        return 1;
    }
    switch(accent)
    {
    case 1:
        {
            pAccent[playerid] = 1;
            SendClientMessage(playerid, White, "You will now speak in the {FF33FF}Normal{FFFFFF} accent, use /accent to change it." );
        }
    case 2:
        {
            pAccent[playerid] = 2;
            SendClientMessage(playerid, White, "You will now speak in the {FF33FF}British{FFFFFF} accent, use /accent to change it." );
        }
    case 3:
        {
            pAccent[playerid] = 3;
            SendClientMessage(playerid, White, "You will now speak in the {FF33FF}Japanese{FFFFFF} accent, use /accent to change it." );
        }
    case 4:
        {
            pAccent[playerid] = 4;
            SendClientMessage(playerid, White, "You will now speak in the {FF33FF}Chinese{FFFFFF} accent, use /accent to change it." );
        }
    case 5:
        {
            pAccent[playerid] = 5;
            SendClientMessage(playerid, White, "You will now speak in the {FF33FF}Korean{FFFFFF} accent, use /accent to change it." );
        }
    case 6:
        {
            pAccent[playerid] = 6;
            SendClientMessage(playerid, White, "You will now speak in the {FF33FF}Scottish{FFFFFF} accent, use /accent to change it." );
        }
    case 7:
        {
            pAccent[playerid] = 7;
            SendClientMessage(playerid, White, "You will now speak in the {FF33FF}Irish{FFFFFF} accent, use /accent to change it." );
        }
    case 8:
        {
            pAccent[playerid] = 8;
            SendClientMessage(playerid, White, "You will now speak in the {FF33FF}Russian{FFFFFF} accent, use /accent to change it." );
        }
    case 9:
        {
            pAccent[playerid] = 9;
            SendClientMessage(playerid, White, "You will now speak in the {FF33FF}American{FFFFFF} accent, use /accent to change it." );
        }
    case 10:
        {
            pAccent[playerid] = 10;
            SendClientMessage(playerid, White, "You will now speak in the {FF33FF}Mexican{FFFFFF} accent, use /accent to change it." );
        }
    case 11:
        {
            pAccent[playerid] = 11;
            SendClientMessage(playerid, White, "You will now speak in the {FF33FF}Texan{FFFFFF} accent, use /accent to change it." );
        }
    case 12:
        {
            pAccent[playerid] = 12;
            SendClientMessage(playerid, White, "You will now speak in the {FF33FF}Cuban{FFFFFF} accent, use /accent to change it." );
        }
    case 13:
        {
            pAccent[playerid] = 13;
            SendClientMessage(playerid, White, "You will now speak in the {FF33FF}Italian{FFFFFF} accent, use /accent to change it." );
        }
    case 14:
        {
            pAccent[playerid] = 14;
            SendClientMessage(playerid, White, "You will now speak in the {FF33FF}Gangsta{FFFFFF} accent, use /accent to change it." );
        }
    case 15:
        {
            pAccent[playerid] = 15;
            SendClientMessage(playerid, White, "You will now speak in the {FF33FF}Australian{FFFFFF} accent, use /accent to change it." );
        }
    case 16:
        {
            pAccent[playerid] = 16;
            SendClientMessage(playerid, White, "You will now speak in the {FF33FF}Arabic{FFFFFF} accent, use /accent to change it." );
        }
    case 17:
        {
            pAccent[playerid] = 17;
            SendClientMessage(playerid, White, "You will now speak in the {FF33FF}Balkan{FFFFFF} accent, use /accent to change it." );
        }
    case 18:
        {
            pAccent[playerid] = 18;
            SendClientMessage(playerid, White, "You will now speak in the {FF33FF}Canadian{FFFFFF} accent, use /accent to change it." );
        }
    case 19:
        {
            pAccent[playerid] = 19;
            SendClientMessage(playerid, White, "You will now speak in the {FF33FF}Jamaican{FFFFFF} accent, use /accent to change it." );
        }
    case 20:
        {
            pAccent[playerid] = 20;
            SendClientMessage(playerid, White, "You will now speak in the {FF33FF}Israeli{FFFFFF} accent, use /accent to change it." );
        }
    }
    return 1;
}
CMD:enter(playerid, params[])
{
    if(IsPlayerInRangeOfPoint(playerid, 4, 3357.1445, 423.6909, 131.0059))
    {
        SetPlayerPos(playerid, 3353.2861, 649.0029, 299.5688);
        SetPlayerVirtualWorld(playerid, 3);
    }
    return 1;
}
After Complie:

Код:
warning 202: number of arguments does not match definition
warning 202: number of arguments does not match definition
warning 202: number of arguments does not match definition
warning 204: symbol is assigned a value that is never used: "binco"
warning 204: symbol is assigned a value that is never used: "burger"
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


5 Warnings.
How the server looks like in the SAMP list:


Server Mode Unknown.......
And inside the server: It's can to connect but The login system wont show up!

HELP!
Reply
#2

Are you sure these errors refer to these lines?
Reply
#3

These errors is not necessarily on the exact line which it's referring to, I've experienced that.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)