Is there something wrong in this line?
#1

Is there something wrong in this line?
Код HTML:
PlayerInfo[playerid][pLearn];
Says that the expression has no effect.
Reply
#2

What are you trying to do? Give us the full code.
Reply
#3

Sorry for that.

PHP код:
        case DIALOG_LOGIN:
        {
            if ( !
response ) return Kick playerid );
            if( 
response )
            {
                if(
udb_hash(inputtext) == PlayerInfo[playerid][pPass])
                {
                    
INI_ParseFile(UserPath(playerid), "LoadUser_%s", .bExtra true, .extra playerid);
                    new 
tmp2256 ], playername2MAX_PLAYER_NAME ];
                    
GetPlayerName(playeridplayername2sizeof(playername2));
                    
format(tmp2sizeof(tmp2), "~w~Welcome ~n~~g~%s"playername2);
                    
GameTextForPlayer(playeridtmp250001);
                    
GivePlayerCash(playeridPlayerInfo[playerid][pCash]);
                    
PlayerInfo[playerid][pLearn];
                    
SetSpawnInfo(playeridPlayerInfo[playerid][pSpecial], PlayerInfo[playerid][pSkin], PlayerInfo[playerid][pPos_x], PlayerInfo[playerid][pPos_y], PlayerInfo[playerid][pPos_z], 1.0, -1, -1, -1, -1, -1, -1);
                    
SpawnPlayer(playerid);
                }
                else
                {
                    
ShowPlayerDialog(playeridDIALOG_LOGINDIALOG_STYLE_INPUT,"Login","You have entered an incorrect password.\nType your password below to login.","Login","Quit");
                }
                return 
1;
            }
        }
    }
    return 
1;

Reply
#4

What are you trying to do with the PlayerInfo[playerid][pLearn];?

PlayerInfo[playerid][pLearn] = 1;?
Reply
#5

Sorry again. I'm trying to load it.
Reply
#6

use the var to load data in LoadUser call back
Reply
#7

Oh. Then you're doing it wrong, you need to place it on the "LoadUser_" callback.


Код:
INI_Int("pLearn", PlayerInfo[playerid][pLearn]);
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)