Modify a Login System help
#1

New to scripting and still learning. Can you please tell me where are the wrongs in this script ?
I really have to fix it to add to the server soon

Quote:

public OnPlayerRequestSpawn(playerid)
{
if gPlayerAccount[playerid] = 1;
{
SendClientMessage(playerid,COLOR_GREEN,"Please /login *Password*");
return 0;
}
else
{
SendClientMessage(playerid,COLOR_GREEN,"Please /register *Password*");
return 0;
}
{
if (gPlayerLogged[playerid] != 0)
{
return 1;
}
}
}

Reply
#2

Quote:
Originally Posted by DArgo2006
Quote:

if gPlayerAccount[playerid] = 1;

That is the part which goes wrong.

I'll let you find out yourself what's wrong in it.

Edit:
Why did you do the first if-statement that way, if the second one is just how it should be:
Quote:

if (gPlayerLogged[playerid] != 0)

Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)