Register / Login problem
#1

So I tried to do a system register / login to dialogue but gives me errors
Quote:

C:\Documents and Settings\alexandra\My Documents\samp03dsvr_R2_win32\gamemodes\gf2.pwn(19 99) : error 029: invalid expression, assumed zero
C:\Documents and Settings\alexandra\My Documents\samp03dsvr_R2_win32\gamemodes\gf2.pwn(19 99) : warning 215: expression has no effect
C:\Documents and Settings\alexandra\My Documents\samp03dsvr_R2_win32\gamemodes\gf2.pwn(19 99) : error 001: expected token: ";", but found ")"
C:\Documents and Settings\alexandra\My Documents\samp03dsvr_R2_win32\gamemodes\gf2.pwn(19 99) : error 029: invalid expression, assumed zero
C:\Documents and Settings\alexandra\My Documents\samp03dsvr_R2_win32\gamemodes\gf2.pwn(19 99) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


4 Errors.

and the line 1999
Quote:

format(file, sizeof(file), SERVER_USER_FILE, name);

Reply
#2

pawn Код:
new pN[24]; GetPlayerName(playerid);
format(file, sizeof(file), SERVER_USER_FILE, pN);
if more erros, post "#define SERVER_USER_FILE".
Reply
#3

I define server_user_file and I have this:
Quote:

{
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, "Salut,nu esti registrat", "scri mai jos parola dorit", "Register", "inchide");
}
if(fexist(file))
{
ShowPlayerDialog(playerid, 2, DIALOG_STYLE_INPUT, "Salut,Esti inregistrat", "ai registrat,scri mai jos parola tau", "Login", "inchide");
}
return 1;
}

Reply
#4

Код:
C:\Documents and Settings\alexandra\My Documents\samp03dsvr_R2_win32\gamemodes\gf2.pwn(19 99) : error 001: expected token: ";", but found ")"
C:\Documents and Settings\alexandra\My Documents\samp03dsvr_R2_win32\gamemodes\gf2.pwn(19 99) : error 029: invalid expression, assumed zero
C:\Documents and Settings\alexandra\My Documents\samp03dsvr_R2_win32\gamemodes\gf2.pwn(19 99) : fatal error 107: too many error messages on one line
i'm sure you have a missing " in the codes check all your codes specially the important part.
Reply
#5

At the top, you should have the Path.
pawn Код:
#define SERVER_USER_FILE "Users/%s.ini"
Change it to the folder you have made on Scriptfiles Folder.
Reply
#6

I added
Quote:

#define SERVER_USER_FILE "Users/%s.ini"

and now gives me
Quote:

C:\Documents and Settings\alexandra\My Documents\samp03dsvr_R2_win32\gamemodes\gf2.pwn(20 10) : warning 225: unreachable code
C:\Documents and Settings\alexandra\My Documents\samp03dsvr_R2_win32\gamemodes\gf2.pwn(25 8 : warning 217: loose indentation
C:\Documents and Settings\alexandra\My Documents\samp03dsvr_R2_win32\gamemodes\gf2.pwn(25 90) : warning 225: unreachable code
C:\Documents and Settings\alexandra\My Documents\samp03dsvr_R2_win32\gamemodes\gf2.pwn(27 22) : warning 209: function "OnPlayerDisconnect" should return a value
C:\Documents and Settings\alexandra\My Documents\samp03dsvr_R2_win32\gamemodes\gf2.pwn(72 85) : error 021: symbol already defined: "strtok"
C:\Documents and Settings\alexandra\My Documents\samp03dsvr_R2_win32\gamemodes\gf2.pwn(73 00) : error 047: array sizes do not match, or destination array is too small
C:\Documents and Settings\alexandra\My Documents\samp03dsvr_R2_win32\gamemodes\gf2.pwn(88 9 : warning 219: local variable "mod" shadows a variable at a preceding level
C:\Documents and Settings\alexandra\My Documents\samp03dsvr_R2_win32\gamemodes\gf2.pwn(26 312) : warning 217: loose indentation
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


2 Errors.

Reply
#7

Dude, it's not to add it. Where did you save them. Write the Files Location "Path".
Reply
#8

This is the server who can fix me plz bother me for a long time http://www.megaupload.com/?d=C39AUF4F is normal gf
Reply
#9

Your package has virus...
My AntiVirus found it.
Reply
#10

Show your SERVER_USER_FILE define's line.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)