please help error and warnings[REP+] - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: please help error and warnings[REP+] (
/showthread.php?tid=611740)
please help error and warnings[REP+] -
Dejan12345 - 10.07.2016
C:\Users\PC\Desktop\Dejanovi folderi\Black Shadow Roleplay\pawno\BSRP.pwn(20) : error 001: expected token: "}", but found "new"
C:\Users\PC\Desktop\Dejanovi folderi\Black Shadow Roleplay\pawno\BSRP.pwn(321) : warning 203: symbol is never used: "gPlayerInfo"
C:\Users\PC\Desktop\Dejanovi folderi\Black Shadow Roleplay\pawno\BSRP.pwn(321) : warning 203: symbol is never used: "ret_memcpy
#include <a_samp>
#include <dini>
#include <dutils>
#pragma tabsize 0
new playersconnected=0;
enum PLAYER_MAIN {
PLAYER_NAME[MAX_PLAYER_NAME],
PLAYER_IP[16],
PLAYER_REGGED,
PLAYER_PASS,
PLAYER_LOGGED,
PLAYER_LEVEL,
PLAYER_WIRED,
PLAYER_JAILED
new gPlayerInfo[MAX_PLAYERS][PLAYER_MAIN];
please help
Re: please help error and warnings[REP+] -
DarkSkull - 10.07.2016
PHP код:
enum PLAYER_MAIN {
PLAYER_NAME[MAX_PLAYER_NAME],
PLAYER_IP[16],
PLAYER_REGGED,
PLAYER_PASS,
PLAYER_LOGGED,
PLAYER_LEVEL,
PLAYER_WIRED,
PLAYER_JAILED}
Edit: The other two are just unused warnings. It means you are not using those variables anywhere. You can either ignore them, or remove the variable.
Re: please help error and warnings[REP+] -
Jingles - 10.07.2016
You forgot the bracket that closes the enumerator. Correct use:
Код:
enum PLAYER_MAIN {
PLAYER_NAME[MAX_PLAYER_NAME],
PLAYER_IP[16],
PLAYER_REGGED,
PLAYER_PASS,
PLAYER_LOGGED,
PLAYER_LEVEL,
PLAYER_WIRED,
PLAYER_JAILED
}
new gPlayerInfo[MAX_PLAYERS][PLAYER_MAIN];