Help Please What is wrong
#1

Код:
#define MINUTES 10 // 10 Minutes.
#define MILISECONDS MINUTES * 60

new
    RegisterTime[MAX_PLAYERS];

public OnPlayerConnect(playerid)
{
 RegisterTime[playerid] = gettime() + MILISECONDS;
return 1; 
}
CMD:register(playerid, params[])
{
    if(RegisterTime[playerid] >= gettime())
    {
        new Str[128]; format(Str, 128, "REGISTER: You are no able to use this command at this point. Wait %d seconds.", RegisterTime[playerid] - gettime());
        return SendClientMessage(playerid, -1, Str);
    }
       new string [ 300 ];
    INI_ParseFile(UserPath(playerid), "LoadUser_%s", .bExtra = true, .extra = playerid);

    new pName[MAX_PLAYER_NAME];
    GetPlayerName(playerid, pName, sizeof(pName));

    format(string, sizeof(string), ""COL_WHITE"{0066FF}BilluGang Cops And Robbers\n\n{999999}New Registration\n{FFFFFF}Nick:{0099FF}%s\n\n{FFFFFF}Do {FF0000}Not {FFFFFF}Register Multiple Accounts\n{FFFFFF}Do {FF0000}Not {FFFFFF}Use The Game Password That You Use Elsewhere\n\nPlease {FFFF66}Enter Your Password {FFFFFF}For Your Account:", pName);
    ShowPlayerDialog(playerid, DIALOG_REGISTER, DIALOG_STYLE_INPUT, ""COL_WHITE"{FFFFFF}CnR {FFFFFF}Registration", string, "Register", "Cancel");
}
What Is Wrong Getting Errors
Код:
C:\Users\Anurag\Desktop\Most Wanted Cops and Robbers v1.1\gamemodes\MWCNR.pwn(5) : error 017: undefined symbol "MAX_PLAYERS"
C:\Users\Anurag\Desktop\Most Wanted Cops and Robbers v1.1\gamemodes\MWCNR.pwn(5) : error 009: invalid array size (negative, zero or out of bounds)
Error Line
Код:
new
    RegisterTime[MAX_PLAYERS];
Reply


Messages In This Thread
Help Please What is wrong - by CarRamper - 30.06.2016, 10:03
Re: Help Please What is wrong - by nemanjasepa - 30.06.2016, 10:04
Re: Help Please What is wrong - by CarRamper - 30.06.2016, 10:11
Re: Help Please What is wrong - by GoldenLion - 30.06.2016, 10:12
Re: Help Please What is wrong - by nemanjasepa - 30.06.2016, 10:13
Re: Help Please What is wrong - by Sithis - 30.06.2016, 10:27
Re: Help Please What is wrong - by Luicy. - 30.06.2016, 11:53
Re: Help Please What is wrong - by SyS - 30.06.2016, 14:21
Re: Help Please What is wrong - by Sithis - 30.06.2016, 21:14
Re: Help Please What is wrong - by Stinged - 30.06.2016, 21:23

Forum Jump:


Users browsing this thread: 1 Guest(s)