#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"); }
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)
new RegisterTime[MAX_PLAYERS];
#include <a_samp>
Did you forget to put
Код:
#include <a_samp> |
This got to be a joke? How do you think he'd forget that? Infact, It would had given alot more errors than this.
|
This got to be a joke? How do you think he'd forget that? Infact, It would had given alot more errors than this.
|