30.07.2009, 15:07
pawn Код:
if (strcmp("/login", cmdtext, true, 10) == 0)
{
if(PlayerInfo[playerid][Logedin] == 0)
{
new tmp[64];
new idx;
tmp = strtok(cmdtext, idx);
if( tmp == PlayerInfo[playerid][Password])
{
SendClientMessage(playerid, COLOR_YELLOW, "You Are Now Logged In");
}
else
{
SendClientMessage(playerid, COLOR_YELLOW, "Wrong Password");
}
}
else
{
SendClientMessage(playerid, COLOR_YELLOW, "You are already loged in");
}
}
Код:
D:\Multiple\Servere\Sa-mp\UnderProgress\gamemodes\underprogress.pwn(191) : error 033: array must be indexed (variable "tmp")