09.01.2011, 06:24
(
Последний раз редактировалось California; 09.01.2011 в 17:03.
)
Just a minor modification; does it work?
pawn Код:
if(strcmp(inputtext, escpass, false) == 0)
{
// The field starts here with 1, because the field 'Name' = 0, and we already have the name in a variable.
format(UserStats[playerid][Password], 32, "%s", field[1]);
UserStats[playerid][Admin] = strval(field[2]);
UserStats[playerid][Money] = strval(field[3]);
UserStats[playerid][ppos_x] = strval(field[4]);
UserStats[playerid][ppos_y] = strval(field[5]);
UserStats[playerid][ppos_z] = strval(field[6]);
GivePlayerCash(playerid, UserStats[playerid][Money]);
SetPlayerPos(playerid, UserStats[playerid][ppos_x], UserStats[playerid][ppos_y], UserStats[playerid][ppos_z]);
}

