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 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]; 



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