18.04.2010, 21:59
C:\Users\Mathew\Desktop\freeroam.pwn(919) : error 033: array must be indexed (variable "ppassword")
C:\Users\Mathew\Desktop\freeroam.pwn(925) : error 033: array must be indexed (variable "ppassword")
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
2 Errors.
dcmd_login(playerid, params[])
{
new pass;
if(sscanf(params, "s", pass)) SendClientMessage(playerid, COLOR_RED, "Usage: /login <password>");
else
{
new name[MAX_PLAYER_NAME], file[100];
GetPlayerName(playerid, name, sizeof(name));
format(file,sizeof(file),PlayerFile,name);
ppassword == dini_Get(file, "password");
// strcat(ppassword, dini_Get(file,"password"));
if(!dini_Exists(file))
{
SendClientMessage(playerid, COLOR_RED, "This name is not registered! register it with /register!");
}else{
if(pass == ppassword)
{
regged[playerid] = 1;
logged[playerid] = 1;
SendClientMessage(playerid, COLOR_GREEN, "Your now logged in!");
}else{
SendClientMessage(playerid, COLOR_RED, "Your password is incorrect!");
}
}
}
return 1;
}
wut do i do D:
C:\Users\Mathew\Desktop\freeroam.pwn(925) : error 033: array must be indexed (variable "ppassword")
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
2 Errors.
dcmd_login(playerid, params[])
{
new pass;
if(sscanf(params, "s", pass)) SendClientMessage(playerid, COLOR_RED, "Usage: /login <password>");
else
{
new name[MAX_PLAYER_NAME], file[100];
GetPlayerName(playerid, name, sizeof(name));
format(file,sizeof(file),PlayerFile,name);
ppassword == dini_Get(file, "password");
// strcat(ppassword, dini_Get(file,"password"));
if(!dini_Exists(file))
{
SendClientMessage(playerid, COLOR_RED, "This name is not registered! register it with /register!");
}else{
if(pass == ppassword)
{
regged[playerid] = 1;
logged[playerid] = 1;
SendClientMessage(playerid, COLOR_GREEN, "Your now logged in!");
}else{
SendClientMessage(playerid, COLOR_RED, "Your password is incorrect!");
}
}
}
return 1;
}
wut do i do D: