Please help.
#1

Hey, help me out with this.

Код:
C:\Users\Joe\Desktop\Sa-mp\gamemodes\supremeroleplay.pwn(410) : error 006: must be assigned to an array
pawn Код:
new Accent;
pawn Код:
public OnPlayerLogin(playerid)
{
    PLAYERLIST_authed[playerid] = true;
    Regstep = dUserINT(PlayerName(playerid)).("Regstep");
    Admin = dUserINT(PlayerName(playerid)).("Admin");
    Accent = dUser(PlayerName(playerid)).("Accent"); // Line 410
    GivePlayerMoney(playerid,dUserINT(PlayerName(playerid)).("Money")-GetPlayerMoney(playerid));
    SetPlayerScore(playerid,dUserINT(PlayerName(playerid)).("Level")-GetPlayerScore(playerid));
}
Reply
#2

Shouldn't dUser be dUserINT?
Reply
#3

Quote:
Originally Posted by alpha500delta
Посмотреть сообщение
Shouldn't dUser be dUserINT?
No, I am saving characters not numbers.
Reply
#4

EDIT: Fixed it by changing:

pawn Код:
new Accent;
to

pawn Код:
new Accent[MAX_PLAYERS];
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)