[POMOC] Login System

Započeo ivanrogulj, Februar 25, 2012, 11:47:46 PRE PODNE

prethodna tema - sledeća tema

0 članova i 2 gostiju pregledaju ovu temu.

Skripta koju koristim: Svoj Roleplay
Detaljan opis problema: Prema tutorialu od Vilka radim login/register system ali mi da 5 errora
Dio skripte: public OnPlayerConnect(playerid)
{
    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, "Niste registrirani", "[VilkoSys]Dobrodosli, niste registrirani. Molim registrirajte se za daljnju igru", "Register", "Leave");
    }
    if(fexist(file))
    {
        ShowPlayerDialog(playerid, 2, DIALOG_STYLE_INPUT, "Vi ste registrirani", "[VilkoSys]Dobrodosli, vi ste registrirani. Logirajte se", "Login", "Leave");
    }
   return 1;
}
Neke slike/video za lakse dobivanje pomoci(neobavezno):


Errori; C:\Users\Rogulj\Desktop\Stunt Server\gamemodes\RolePlay.pwn(6) : error 009: invalid array size (negative, zero or out of bounds)
C:\Users\Rogulj\Desktop\Stunt Server\pawno\include\a_samp.inc(30) : warning 201: redefinition of constant/macro (symbol "MAX_PLAYERS")
C:\Users\Rogulj\Desktop\Stunt Server\gamemodes\RolePlay.pwn(73) : warning 217: loose indentation
C:\Users\Rogulj\Desktop\Stunt Server\gamemodes\RolePlay.pwn(75) : error 029: invalid expression, assumed zero
C:\Users\Rogulj\Desktop\Stunt Server\gamemodes\RolePlay.pwn(75) : warning 215: expression has no effect
C:\Users\Rogulj\Desktop\Stunt Server\gamemodes\RolePlay.pwn(75) : error 001: expected token: ";", but found ")"
C:\Users\Rogulj\Desktop\Stunt Server\gamemodes\RolePlay.pwn(75) : error 029: invalid expression, assumed zero
C:\Users\Rogulj\Desktop\Stunt Server\gamemodes\RolePlay.pwn(75) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664           Copyright (c) 1997-2006, ITB CompuPhase


5 Errors.