[Dini] INI-files easy! (1.6, 16th Sep 2008)
#25

lol me again.

im trying to make it so that people can register there email address on the server but im getting these errors
Code:
C:\Documents and Settings\Patrick\Desktop\niko.pwn(432) : error 035: argument type mismatch (argument 1)
C:\Documents and Settings\Patrick\Desktop\niko.pwn(433) : error 035: argument type mismatch (argument 3)
C:\Documents and Settings\Patrick\Desktop\niko.pwn(449) : warning 204: symbol is assigned a value that is never used: "email"
Pawn compiler 3.0.3367			Copyright © 1997-2005, ITB CompuPhase
my code is
Code:
	if(strcmp(cmd, "/register", true)==0) {
		new tmp[562];
		tmp = strtok(cmdtext, idx);
		
		if(!strlen(tmp)) {
		  SendClientMessage(playerid, RED, "USAGE: /register [password] [email]");
		  return 1;
		  }

		password = strval(tmp);
		tmp = strtok(cmdtext, idx);
		
		if(!strlen(tmp)) {
		  SendClientMessage(playerid, RED, "USAGE: /register [password] [email]");
		  return 1;
		  }

		email = strval(tmp);
		
		GetPlayerName(playerid, playername, sizeof(playername));
		
		if(logged[playerid] != 1) {
		  if(!dini_Exists(udb_encode(playername))) {
		    dini_Create(udb_encode(playername));
		    dini_IntSet(udb_encode(playername), "password", udb_hash(password));
		    dini_Set(udb_encode(playername), "email", email);
		    format(string, sizeof(string), "You have successfully registered the password %s you are now logged in", password);
		    SendClientMessage(playerid, LIGHTBLUE, string);
		    logged[playerid] = 1;
		    return 1;
		  } else {
		    SendClientMessage(playerid, RED, "Nick already registered");
		    return 1;
		  }
		  } else {
		    SendClientMessage(playerid, RED, "You are already logged in");
		    return 1;
			}
	return 1;
}
lines 432 and 433 are
Code:
		    dini_IntSet(udb_encode(playername), "password", udb_hash(password));
		    dini_Set(udb_encode(playername), "email", email);
thanx if you can help me fix this
Reply


Messages In This Thread
[Dini] INI-files easy! (1.6, 16th Sep 2008) - by DracoBlue - 14.05.2006, 18:03
Re: [Dini] INI-files easy! - by caytchen - 14.05.2006, 18:05
Re: [Dini] INI-files easy! - by DracoBlue - 14.05.2006, 18:06
Re: [Dini] INI-files easy! - by Slick - 15.05.2006, 09:20
Re: [Dini] INI-files easy! - by Masta - 29.05.2006, 01:18
Re: [Dini] INI-files easy! - by DON_FAF - 29.05.2006, 01:57
Re: [Dini] INI-files easy! - by Masta - 29.05.2006, 03:56
Re: [Dini] INI-files easy! - by DracoBlue - 29.05.2006, 09:47
Re: [Dini] INI-files easy! - by Masta - 01.06.2006, 02:01
Re: [Dini] INI-files easy! - by ProRaiL - 15.07.2006, 14:12
Re: [Dini] INI-files easy! - by ProRaiL - 15.07.2006, 14:38
Re: [Dini] INI-files easy! - by ProRaiL - 16.07.2006, 05:34
Re: [Dini] INI-files easy! - by [BDC]Scarface - 16.07.2006, 13:58
Re: [Dini] INI-files easy! - by DracoBlue - 16.07.2006, 17:52
Re: [Dini] INI-files easy! - by tosscops - 17.07.2006, 13:55
Re: [Dini] INI-files easy! - by {XN}BigPaddy - 16.08.2006, 22:27
Re: [Dini] INI-files easy! - by DracoBlue - 17.08.2006, 08:32
Re: [Dini] INI-files easy! - by {XN}BigPaddy - 17.08.2006, 09:22
Re: [Dini] INI-files easy! - by DracoBlue - 17.08.2006, 09:43
Re: [Dini] INI-files easy! - by metalpenguin - 17.08.2006, 11:16
Re: [Dini] INI-files easy! - by Tratulla - 01.09.2006, 14:41
Re: [Dini] INI-files easy! - by DracoBlue - 01.09.2006, 14:46
Re: [Dini] INI-files easy! - by Tratulla - 01.09.2006, 14:49
Re: [Dini] INI-files easy! - by DracoBlue - 01.09.2006, 15:45
Re: [Dini] INI-files easy! - by Crazycamel - 30.09.2006, 11:54
Re: [Dini] INI-files easy! - by DracoBlue - 30.09.2006, 12:02
Re: [Dini] INI-files easy! - by Crazycamel - 30.09.2006, 12:52
Re: [Dini] INI-files easy! - by DracoBlue - 30.09.2006, 13:03
Re: [Dini] INI-files easy! - by Crazycamel - 30.09.2006, 13:20
Re: [Dini] INI-files easy! - by DracoBlue - 30.09.2006, 13:29
Re: [Dini] INI-files easy! (1.6, 16th Sep 2008) - by Brezon - 11.07.2014, 11:23

Forum Jump:


Users browsing this thread: 1 Guest(s)