SA-MP Forums Archive
String problem - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: String problem (/showthread.php?tid=358529)



String problem - Squirrel - 10.07.2012

I got problem with this

PHP код:
warning 204: symbol is assigned a value that is never used: "string" 
PHP код:
if (dialogid == 101)
    {
        new 
name[MAX_PLAYER_NAME], file[256], string[128];
        
GetPlayerName(playerid, name, sizeof(name));
        
format(file, sizeof(file), SERVER_USER_FILE, name);
        if(!
response) return Kick(playerid);
        if (!
strlen(inputtext)) return ShowPlayerDialog(playerid, 2, DIALOG_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(playerid, COLOR_RED, "Wrong PW sir.");
            
ShowPlayerDialog(playerid, 2, DIALOG_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(playerid, PlayerInfo[playerid][pScore]);
            
GivePlayerMoney(playerid, dini_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]; 



Re: String problem - Larceny - 10.07.2012

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


Re: String problem - Squirrel - 10.07.2012

Yeah.... But when I do that pawn crashes lol


Re: String problem - ReVo_ - 10.07.2012

new name[MAX_PLAYER_NAME], file[256];

crash ur pawn? O.o