String problem
#1

I got problem with this

PHP код:
warning 204symbol is assigned a value that is never used"string" 
PHP код:
if (dialogid == 101)
    {
        new 
name[MAX_PLAYER_NAME], file[256], string[128];
        
GetPlayerName(playeridnamesizeof(name));
        
format(filesizeof(file), SERVER_USER_FILEname);
        if(!
response) return Kick(playerid);
        if (!
strlen(inputtext)) return ShowPlayerDialog(playerid2DIALOG_STYLE_INPUT"Hi your registered""Fucken awesome mate, your registered :D. Inpute your pw below""Login""Leave");
        new 
tmp;
        
tmp dini_Int(file"Password");
        if(
udb_hash(inputtext) != tmp) {
            
SendClientMessage(playeridCOLOR_RED"Wrong PW sir.");
            
ShowPlayerDialog(playerid2DIALOG_STYLE_INPUT"Hi your registered""Fucken awesome mate, your registered :D. Inpute your pw below""Login""Leave");
        }
        else
        {
            
gPlayerLogged[playerid] = 1;
            
PlayerInfo[playerid][pAdminLevel] = dini_Int(file"AdminLevel");
            
SetPlayerScore(playeridPlayerInfo[playerid][pScore]);
            
GivePlayerMoney(playeriddini_Int(file"Money")-GetPlayerMoney(playerid));
            
SendClientMessage(playerid,COLOR_RED"[SYSTEM]: Successfully logged in!");
        }
    } 
Error line:
PHP код:
new name[MAX_PLAYER_NAME], file[256], string[128]; 
Reply
#2

What do you do with the things you never use? delete it...
Reply
#3

Yeah.... But when I do that pawn crashes lol
Reply
#4

new name[MAX_PLAYER_NAME], file[256];

crash ur pawn? O.o
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)