02.07.2016, 04:04
Okay - I am currently developing on the PR-RP gamemode, which of-course, has some bugs & errors here and there, but they can be fixed.
.. Now let's move to the errors!
And, it's from this command that I get the errors:
.. Now let's move to the errors!
Код:
gamemodes\OnCommand.pwn(139) : error 020: invalid symbol name "" gamemodes\OnCommand.pwn(141) : error 017: undefined symbol "MAX_PLAYER_NAME" gamemodes\OnCommand.pwn(141) : error 009: invalid array size (negative, zero or out of bounds) gamemodes\OnCommand.pwn(142) : error 010: invalid function or declaration gamemodes\OnCommand.pwn(143) : error 010: invalid function or declaration gamemodes\OnCommand.pwn(145) : error 010: invalid function or declaration gamemodes\OnCommand.pwn(146) : error 010: invalid function or declaration gamemodes\OnCommand.pwn(147) : error 010: invalid function or declaration gamemodes\OnCommand.pwn(147) : error 010: invalid function or declaration gamemodes\OnCommand.pwn(149) : error 025: function heading differs from prototype gamemodes\OnCommand.pwn(149) : error 010: invalid function or declaration gamemodes\OnCommand.pwn(149) : error 021: symbol already defined: "format" gamemodes\OnCommand.pwn(149) : fatal error 107: too many error messages on one line
Код:
COMMAND:do(playerid, params[]) { new text[256],string[256],sendername[MAX_PLAYER_NAME]; if(sscanf(params, "s[256]", text)) SendClientMessage(playerid, COLOR_GREY, "USAGE: /do {FFFFFF}[text]"); else { if (GetPVarInt(playerid, "PlayerLogged") == 0) return SendClientMessage(playerid, COLOR_WHITE, "You must be logged in to use this."); if(GetPVarInt(playerid, "Mute") == 1) return SendClientMessage(playerid, COLOR_LIGHTRED, "You are currently muted !"); format(sendername, sizeof(sendername), "%s", PlayerNameEx(playerid)); GiveNameSpace(sendername); format(string, sizeof(string), "* %s (( %s ))", text, sendername); ProxDetector(30.0, playerid, string, COLOR_PURPLE); } return 1; }