won't load wanted level [Help]!!!
#1

When i connect the system won't load my wanted level!!
PHP код:
SetPlayerWantedLevel(playeriddini_Int(file"Wanted")); 
Reply
#2

pawn Код:
SetPlayerWantedLevel(playerid, pInfo[playerid][Wanted]);
You should use something like this that accesses the enumerator.
Reply
#3

no. I mean what i need to do under OnPlayerConnect.
Reply
#4

First, what is your variable used to access your enum like pInfo[playerid][Wanted] exactly?
Reply
#5

PlayerInfo[playerid][pWanted]
Reply
#6

It's better to do it with OnPlayerSpawn:
pawn Код:
public OnPlayerSpawn(playerid)
{
    SetPlayerWantedLevel(playerid,PlayerInfo[playerid][pWanted]);
    return 1;
}
If you do it OnPlayerConnect, once the player has accessed his account, that will be overwritten.
Reply
#7

won't works it wont load when i connect
Reply
#8

Post your code pls
Reply
#9

pawn Код:
public OnPlayerConnect(playerid)
{
    SetPlayerWantedLevel(playerid,PlayerInfo[playerid][pWanted]);
    return 1;
}
Reply
#10

Quote:
Originally Posted by HY
Посмотреть сообщение
pawn Код:
public OnPlayerConnect(playerid)
{
    SetPlayerWantedLevel(playerid,PlayerInfo[playerid][pWanted]);
    return 1;
}
I already told him that, but he said it wasn't working so we wouldn't know until he shows us how the wanted level saves, etc.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)