if(strcmp(cmd, "/changepass", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if(logged[playerid] == 0)
{
SendClientMessage(playerid, COLOR_RED, "You need to login before changing password.");
return 1;
}
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_YELLOW, "Correct Usage: /changepass[password]");
return 1;
}
dini_Get(udb_encode(playername), "Password");, tmp, 0, strlen(cmdtext), 255);
OnPlayerUpdate(playerid);
SendClientMessage(playerid, COLOR_YELLOW, "Password has been changed successfuly");
}
return 1;
}
error 029: invalid expression, assumed zero warning 215: expression has no effect warning 215: expression has no effect warning 215: expression has no effect error 001: expected token: ";", but found ")" error 029: invalid expression, assumed zero fatal error 107: too many error messages on one line
dini_Get(udb_encode(playername), "Password") , tmp, 0, strlen(cmdtext), 255);
SendClientMessage(playerid, COLOR_RED, "You need to login before changing password."); |
error 001: expected token: ";", but found ")"
dini_Get(udb_encode(playername), "Password");, tmp, 0, strlen(cmdtext), 255);
dini_Get(udb_encode(playername), "Password"), tmp, 0, strlen(cmdtext), 255);
dini_Get(udb_encode(playername), "Password") , tmp, 0, strlen(cmdtext), 255);