Problem with a tutorial
#5

I got this as warnings/errors:


Код:
test.pwn(51) : warning 204: symbol is assigned a value that is never used: "PInfo"
test.pwn(50) : warning 203: symbol is never used: "Argent"
test.pwn(48) : warning 203: symbol is never used: "Password"
test.pwn(47) : warning 203: symbol is never used: "Username"
test.pwn(63) : error 035: argument type mismatch (argument 1)
test.pwn(226) : error 017: undefined symbol "Logindialog"
test.pwn(237) : warning 217: loose indentation
test.pwn(285) : warning 217: loose indentation
test.pwn(286) : warning 217: loose indentation
test.pwn(286) : error 017: undefined symbol "GetPName"
test.pwn(287) : error 035: argument type mismatch (argument 1)
test.pwn(291) : error 017: undefined symbol "green"
test.pwn(296) : error 017: undefined symbol "red"
test.pwn(311) : error 035: argument type mismatch (argument 1)
test.pwn(314) : error 017: undefined symbol "PInfo"
test.pwn(314) : warning 215: expression has no effect
test.pwn(314) : error 001: expected token: ";", but found "]"
test.pwn(314) : error 029: invalid expression, assumed zero
test.pwn(314) : fatal error 107: too many error messages on one line
Pastbin: http://pastebin.com/0QWEMrfe



Block of line 78: ( now line 63)

Код:
public OnPlayerConnect(playerid) {
	new Query[80],pName[24],string[164];
	GetPlayerName(playerid,pName,24);
	format(Query,sizeof(Query),"SELECT `Username` FROM `Users` WHERE `Username` = '%s' LIMIT 1;",pName);
	mysql_query(Query);
	mysql_store_result();
	if(mysql_num_rows() != 0)//if number of rows is different from 0 then continue
		{
		format(string,sizeof(string),"Hey, %s! \nYour account is registered.\nPlease enter the password to log in!",pName);
		ShowPlayerDialog(playerid,0,DIALOG_STYLE_INPUT,"Lo g in",string,"Login","");
		}
	else
		{
		format(string,sizeof(string),"Hey, %s! \nYour account is not registered. \nPlease register to continue!",pName);
		ShowPlayerDialog(playerid,1,DIALOG_STYLE_INPUT,"Re gister",string,"Register","");
		}
	mysql_free_result();
    return true;
}
Reply


Messages In This Thread
Problem with a tutorial - by anou1 - 04.01.2014, 11:01
Re: Problem with a tutorial - by Yashas - 04.01.2014, 11:09
Re: Problem with a tutorial - by anou1 - 04.01.2014, 11:27
Re: Problem with a tutorial - by Yashas - 04.01.2014, 11:55
Re: Problem with a tutorial - by anou1 - 04.01.2014, 12:09
Re: Problem with a tutorial - by Yashas - 04.01.2014, 12:20
Re: Problem with a tutorial - by anou1 - 04.01.2014, 15:08
Re: Problem with a tutorial - by Yashas - 04.01.2014, 16:08
Re: Problem with a tutorial - by anou1 - 04.01.2014, 16:57
Re: Problem with a tutorial - by anou1 - 04.01.2014, 22:23

Forum Jump:


Users browsing this thread: 2 Guest(s)