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