05.01.2013, 01:00
Quote:
No, you are 100% wrong.
Make sure that tmppass is declared as a string with a size, and isn't empty. |
pawn Код:
new tmppass[64]; // Here it is :p This code looking good?
new playername[MAX_PLAYER_NAME];
strmid(tmppass, inputtext, 0, strlen(inputtext), 255);
GetPlayerName(playerid, playername, sizeof(playername));
if(strlen(playername) == 3)
{
if(strcmp(playername, "InActive", true) == 0)
{
return 0;
}
else
{
SendClientMessage(playerid, COLOR_LIGHTRED, "Sorry, that name is too short, please change it.");
Kick(playerid);
return 1;
}
}
Encrypt(tmppass);
OnPlayerLogin(playerid,tmppass);
}
else
{
SendClientMessage(playerid, COLOR_RED, "You chose to leave the server.");
Kick(playerid);
}
}