stickycz 0 Odesláno: 16. Únor, 2013 Share Odesláno: 16. Únor, 2013 Čau lidi Mám malej problém s jedním řádkem u registrace. Na začátku mám. #include <a_samp> #include <dini> #include <dudb> #include <dutils> #define COLOR_GREY 0xAFAFAFAA #define COLOR_GREEN 0x33AA33AA #define COLOR_ORANGE 0xFF9900AA #define COLOR_RED 0xAA3333AA #define COLOR_YELLOW 0xFFFF00AA #define SERVER_USER_FILE "myserver/%s.ini" new PlayerInfo[MAX_PLAYERS][pInfo]; new gPlayerLogged[MAX_PLAYERS]; Řádek ve kterém jsou chyby je: gPlayerLogged[playerid] = 0; Chyby které mi to píše. C:\Users\J***\Desktop\Mapa\pawno\StickyCZ.pwn(653) : error 017: undefined symbol "gPlayerLogged" C:\Users\J***\Desktop\Mapa\pawno\StickyCZ.pwn(653) : warning 215: expression has no effect C:\Users\J***\Desktop\Mapa\pawno\StickyCZ.pwn(653) : error 001: expected token: ";", but found "]" C:\Users\J***\Desktop\Mapa\pawno\StickyCZ.pwn(653) : error 029: invalid expression, assumed zero pomůžete mi ?. Link to comment Share on other sites More sharing options...
0 FizzyCZE 4 Odesláno: 16. Únor, 2013 Share Odesláno: 16. Únor, 2013 (653) : error 017: undefined symbol "gPlayerLogged" = na řádku 653 máš jen gPlayerLogged, přidej za to [playerid] (gPlayerLogged[playerid]) (653) : warning 215: expression has no effect = tento řádek nemá žádný efekt (653) : error 001: expected token: ";", but found "]" = chtělo to najít ; ale našlo ], takže tam máš asi parametr navíc? Link to comment Share on other sites More sharing options...
0 stickycz 0 Odesláno: 16. Únor, 2013 Author Share Odesláno: 16. Únor, 2013 Díky ale jak jsem psal na tom řádku mám playerid ( celý řádek gPlayerLogged[playerid] = 0; ) řádek je součástí tohoto. public OnPlayerConnect(playerid) { PlayAudioStreamForPlayer(playerid, "http://www.stickys.wz.cz/welcome.mp3"); gPlayerLogged[playerid] = 0; new name[MAX_PLAYER_NAME], file[256]; GetPlayerName(playerid, name, sizeof(name)); format(file, sizeof(file), SERVER_USER_FILE, name); if (!dini_Exists(file)) { ShowPlayerDialog(playerid, 1, DIALOG_STYLE_INPUT, "Hi your not registered", "Welcome, your not registered mate, input your registration pw below", "Register", "Leave"); } if(fexist(file)) { ShowPlayerDialog(playerid, 2, DIALOG_STYLE_INPUT, "Hi your registered", "Fucken awesome mate, your registered . Inpute your pw below", "Login", "Leave"); } return 1; } Link to comment Share on other sites More sharing options...
0 FizzyCZE 4 Odesláno: 16. Únor, 2013 Share Odesláno: 16. Únor, 2013 Dej prosím celý kód na pastebin, dám si to do souboru a protestuju to... Klidně pošli odkaz do sz Link to comment Share on other sites More sharing options...
0 stickycz 0 Odesláno: 16. Únor, 2013 Author Share Odesláno: 16. Únor, 2013 OK odesláno Link to comment Share on other sites More sharing options...
Dotaz
stickycz 0
Čau lidi
Mám malej problém s jedním řádkem u registrace.
Na začátku mám.
#include <a_samp>
#include <dini>
#include <dudb>
#include <dutils>
#define COLOR_GREY 0xAFAFAFAA
#define COLOR_GREEN 0x33AA33AA
#define COLOR_ORANGE 0xFF9900AA
#define COLOR_RED 0xAA3333AA
#define COLOR_YELLOW 0xFFFF00AA
#define SERVER_USER_FILE "myserver/%s.ini"
new PlayerInfo[MAX_PLAYERS][pInfo];
new gPlayerLogged[MAX_PLAYERS];
Řádek ve kterém jsou chyby je:
gPlayerLogged[playerid] = 0;
Chyby které mi to píše.
C:\Users\J***\Desktop\Mapa\pawno\StickyCZ.pwn(653) : error 017: undefined symbol "gPlayerLogged"
C:\Users\J***\Desktop\Mapa\pawno\StickyCZ.pwn(653) : warning 215: expression has no effect
C:\Users\J***\Desktop\Mapa\pawno\StickyCZ.pwn(653) : error 001: expected token: ";", but found "]"
C:\Users\J***\Desktop\Mapa\pawno\StickyCZ.pwn(653) : error 029: invalid expression, assumed zero
pomůžete mi ?.
Link to comment
Share on other sites
4 odpovědí na tuto otázku
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now