Jump to content
  • 0

pomoc Registrace Přes Dialog


stickycz

Dotaz

Č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

  • 0

(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

  • 0

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 :d. Inpute your pw below", "Login", "Leave");

}

return 1;

}

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...