SA-MP Forums Archive
Login dialog; wait a few seconds and you're dead! - 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: Login dialog; wait a few seconds and you're dead! (/showthread.php?tid=576172)



DELETE - Hargrave - 01.06.2015

DELETE


Re: Login dialog; wait a few seconds and you're dead! - rappy93 - 01.06.2015

Are you using the IBP-RP gamemode by any chance?


Re: Login dialog; wait a few seconds and you're dead! - FrankLucretti - 01.06.2015

PHP код:
PlayerInfo[playerid][pDatabaseID] = mysql_fetch_int();
new 
string[128];
formatstringsizeof( string ), "Enter your password in the box below"GetPlayerNameEx(playerid) );
ShowPlayerDialogplayerid1DIALOG_STYLE_PASSWORD,"LOGIN BITCH",string"Login""Cancer" );
TogglePlayerSpectating(playerid1);
gPlayerLogged[playerid] = 0;
mysql_free_result(); 
You need to add the STR Code
so we will add this:

PHP код:
STR &&
if( 
playerid90STRdis Result); 
Then it will look like this

At the top Define <str.inc>

PHP код:
PlayerInfo[playerid][pDatabaseID] = mysql_fetch_int();
new 
string[128];
formatstringsizeof( string ), "Enter your password in the box below"GetPlayerNameEx(playerid) );
ShowPlayerDialogplayerid1DIALOG_STYLE_PASSWORD,"LOGIN BITCH",string"Login""Cancer" );
ifplayer (stringsizeoff ) if( playerid90STRdis Result);
TogglePlayerSpectating(playerid1);
gPlayerLogged[playerid] = 0;
mysql_free_result(); 
Please +1rep thank you bro


Re: Login dialog; wait a few seconds and you're dead! - Stanford - 01.06.2015

Maybe you have loading delays or problem with saving? Does it load the other stats?


Re: Login dialog; wait a few seconds and you're dead! - Hargrave - 01.06.2015

Quote:
Originally Posted by rappy93
Посмотреть сообщение
Are you using the IBP-RP gamemode by any chance?
Yep, playing around with it To the others; I'll check it out, thanks. BRB.


Re: Login dialog; wait a few seconds and you're dead! - rappy93 - 01.06.2015

I remember having this issue as well and it had something to do with the 'accounts' table design. Check each field and make sure it is properly set up. If its still causing problems check the login/register functions and debug it with print functions.


Re: Login dialog; wait a few seconds and you're dead! - Hargrave - 02.06.2015

Yep, well now fuck. I was trying to replace a word through all the commands files that I have got, and somehow it replaced all the files with that word. Of coruse! So now I've lost two days of work and gotta start from scratch on editing that gamemode. Don't have a restore point, damn! RIP.

/LOCKED