SA-MP Forums Archive
[Tutorial] Login and Register System - Dialogs - Using Y_INI - 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)
+---- Forum: Tutorials (https://sampforum.blast.hk/forumdisplay.php?fid=70)
+---- Thread: [Tutorial] Login and Register System - Dialogs - Using Y_INI (/showthread.php?tid=273088)

Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14


Re: Login and Register System - Dialogs - Using Y_INI - ErzaNatsu - 30.06.2012

Nice Tutorial dude


Re: Login and Register System - Dialogs - Using Y_INI - Speeeeeed - 02.07.2012

where must I create the folder "LoadUser


Re: Login and Register System - Dialogs - Using Y_INI - Lynn - 05.07.2012

Once I log out, my User files is blank. It's saved as a .ini...but has nothing at all inside D:.
I did everything(Atleast I thought I did....) that the tutorial said.


Re: Login and Register System - Dialogs - Using Y_INI - Samp-Media - 07.07.2012

Error

filterscripts\login_register.pwn(306) : warning 217: loose indentation

Code:
                                        ShowPlayerDialog(playerid, DIALOG_SUCCESS_2, DIALOG_STYLE_MSGBOX,""COL_WHITE"",""COL_GREEN"you registered","ok","");



Re: Login and Register System - Dialogs - Using Y_INI - TheDeath - 10.07.2012

I have very big Problem it saves cash score and so .. but id dont saves password and then u can login with every password


Respuesta: Login and Register System - Dialogs - Using Y_INI - !R1Ch@rD! - 12.07.2012

:O Thanks


Re: Login and Register System - Dialogs - Using Y_INI - Blunt - 12.07.2012

This works fine, but whenever a player logs into my server and enters the password he entered before it says 'Invalid Password', it's either some errors in this tutorial or something, maybe you could help me?


Re: Login and Register System - Dialogs - Using Y_INI - Goru - 12.07.2012

Nice tut man, I like it so far. (=


Re: Login and Register System - Dialogs - Using Y_INI - Bug. - 14.09.2012

How to add stats command?? To see kills ,deaths, admin level-...


Re: Login and Register System - Dialogs - Using Y_INI - Guitar - 15.09.2012

Here is a script I made for "stats" just remove the extras or get an idea of how it's done:

pawn Code:
CMD:stats(playerid, params[])
{
    new str[256], pName[24], IP[16];
    new Money = GetPlayerMoney(playerid);
    PlayerNameGet(playerid, pName, 24);
    GetPlayerIp(playerid,IP,sizeof IP);
    format(str, 256, "--||========================================-|%s's Stats|-=======================================", pName);
    SendClientMessage(playerid,COLOR_WHITE,str);
    format(str,128, ">"#COL_WHITE"%s: IP[%s] - Money[$%i] - Kills[%i] - Deaths[%i] - Admin[%i] - Skin[%i] - Score[%i] - Team[%i]",pName, IP, Money, PlayerInfo[playerid][pKills], PlayerInfo[playerid][pDeaths], PlayerInfo[playerid][pAdmin], GetPlayerSkin(playerid), PlayerInfo[playerid][pScore], PlayerInfo[playerid][pTeam]);
    SendClientMessage(playerid,COLOR_WHITE,str);
    return 1;
}



Re: Login and Register System - Dialogs - Using Y_INI - Bug. - 15.09.2012

What a problem?

Code:
    if (strcmp("/stats", cmdtext, true, 10) == 0)
    {
    new str[256], pName[24], IP[16];
    new Money = GetPlayerMoney(playerid);
    PlayerNameGet(playerid, pName, 24);
    GetPlayerIp(playerid,IP,sizeof IP);
    format(str, 256, "--||========================================-|%s's Stats|-=======================================", pName);
    SendClientMessage(playerid,0xE8DBDB,str);
    format(str,128, ">"#COL_WHITE"%s: IP[%s] - Money[$%i] - Kills[%i] - Deaths[%i] - Admin[%i] - Skin[%i] - Score[%i] - Team[%i]",pName, IP, Money, PlayerInfo[playerid][pKills], PlayerInfo[playerid][pDeaths], PlayerInfo[playerid][pAdmin], GetPlayerSkin(playerid), PlayerInfo[playerid][pScore], PlayerInfo[playerid][pTeam]);
    SendClientMessage(playerid,0xE8DBDB,str);
    return 1;
    }
Its say me
Code:
C:\Documents and Settings\MarkHomo\My Documents\Downloads\Natan P\gamemodes\TDM.pwn(227) : error 017: undefined symbol "PlayerNameGet"
C:\Documents and Settings\MarkHomo\My Documents\Downloads\Natan P\gamemodes\TDM.pwn(231) : error 017: undefined symbol "pScore"
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


2 Errors.



Re: Login and Register System - Dialogs - Using Y_INI - gtakillerIV - 15.09.2012

Quote:
Originally Posted by Bug.
View Post
What a problem?

Code:
    if (strcmp("/stats", cmdtext, true, 10) == 0)
    {
    new str[256], pName[24], IP[16];
    new Money = GetPlayerMoney(playerid);
    PlayerNameGet(playerid, pName, 24);
    GetPlayerIp(playerid,IP,sizeof IP);
    format(str, 256, "--||========================================-|%s's Stats|-=======================================", pName);
    SendClientMessage(playerid,0xE8DBDB,str);
    format(str,128, ">"#COL_WHITE"%s: IP[%s] - Money[$%i] - Kills[%i] - Deaths[%i] - Admin[%i] - Skin[%i] - Score[%i] - Team[%i]",pName, IP, Money, PlayerInfo[playerid][pKills], PlayerInfo[playerid][pDeaths], PlayerInfo[playerid][pAdmin], GetPlayerSkin(playerid), PlayerInfo[playerid][pScore], PlayerInfo[playerid][pTeam]);
    SendClientMessage(playerid,0xE8DBDB,str);
    return 1;
    }
Its say me
Code:
C:\Documents and Settings\MarkHomo\My Documents\Downloads\Natan P\gamemodes\TDM.pwn(227) : error 017: undefined symbol "PlayerNameGet"
C:\Documents and Settings\MarkHomo\My Documents\Downloads\Natan P\gamemodes\TDM.pwn(231) : error 017: undefined symbol "pScore"
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


2 Errors.
Make sure you added pScore in the Enum.

And it is GetPlayerName not PlayerNameGet.


Re: Login and Register System - Dialogs - Using Y_INI - Bug. - 15.09.2012

Quote:
Originally Posted by gtakillerIV
View Post
Make sure you added pScore in the Enum.

And it is GetPlayerName not PlayerNameGet.
What the hell is that "pscore" and how to add this? Help me pLease


Re: Login and Register System - Dialogs - Using Y_INI - Sig Hansen - 15.09.2012

Deleted.
Wrong Post


Re: Login and Register System - Dialogs - Using Y_INI - Bug. - 15.09.2012

Help please!!!


Respuesta: Login and Register System - Dialogs - Using Y_INI - RiChArD_A - 20.09.2012

But expalin where do we need to place thus codes like for example: "Step V" WHERE?! i need this fast please hurry!


Respuesta: Login and Register System - Dialogs - Using Y_INI - RiChArD_A - 23.09.2012

But expalin where do we need to place thus codes like for example: "Step V" WHERE?! i need this fast please hurry!
But expalin where do we need to place thus codes like for example: "Step V" WHERE?! i need this fast please hurry!
But expalin where do we need to place thus codes like for example: "Step V" WHERE?! i need this fast please hurry!
HELP FAST!!!!!!


Re: Respuesta: Login and Register System - Dialogs - Using Y_INI - Glint - 24.09.2012

Quote:
Originally Posted by Lauder
View Post
But expalin where do we need to place thus codes like for example: "Step V" WHERE?! i need this fast please hurry!
But expalin where do we need to place thus codes like for example: "Step V" WHERE?! i need this fast please hurry!
But expalin where do we need to place thus codes like for example: "Step V" WHERE?! i need this fast please hurry!
HELP FAST!!!!!!
What ?


Re: Login and Register System - Dialogs - Using Y_INI - Glint - 27.09.2012

Quote:
Originally Posted by Marinko
Посмотреть сообщение
Very,very,very very good tut.
Thank you...

Btw i have small probs with

public OnPlayerDeath(playerid, killerid, reason)
{
PlayerInfo[killerid][pKills]++;
PlayerInfo[playerid][pDeaths]++;
return 1;
}

But i igore it
You say that you have a problem, then explain what the problem is we are not Guru's


Re: Login and Register System - Dialogs - Using Y_INI - Bug. - 29.09.2012

How to fix it?
Код:
Why its do this??

Code:
I:\CokeTDM [0.3e]\Login and Register Sytem Y_INI\pawno\include\YSI\internal\y_dohooks.inc(2566) : warning 235: public function lacks forward declaration (symbol "OnUnoccupiedVehicleUpdate")
I:\CokeTDM [0.3e]\Login and Register Sytem Y_INI\pawno\include\YSI\internal\y_dohooks.inc(3426) : warning 235: public function lacks forward declaration (symbol "OnPlayerTakeDamage")
I:\CokeTDM [0.3e]\Login and Register Sytem Y_INI\pawno\include\YSI\internal\y_dohooks.inc(3495) : warning 235: public function lacks forward declaration (symbol "OnPlayerGiveDamage")
I:\CokeTDM [0.3e]\Login and Register Sytem Y_INI\gamemodes\NpTDM.pwn(781) : warning 217: loose indentation
I:\CokeTDM [0.3e]\Login and Register Sytem Y_INI\gamemodes\NpTDM.pwn(781) : error 029: invalid expression, assumed zero
I:\CokeTDM [0.3e]\Login and Register Sytem Y_INI\gamemodes\NpTDM.pwn(781) : error 004: function "S@@_OnPlayerEnterVehicle" is not implemented
I:\CokeTDM [0.3e]\Login and Register Sytem Y_INI\gamemodes\NpTDM.pwn(786) : warning 225: unreachable code
I:\CokeTDM [0.3e]\Login and Register Sytem Y_INI\gamemodes\NpTDM.pwn(786) : error 029: invalid expression, assumed zero
I:\CokeTDM [0.3e]\Login and Register Sytem Y_INI\gamemodes\NpTDM.pwn(786) : error 004: function "S@@_OnPlayerExitVehicle" is not implemented
I:\CokeTDM [0.3e]\Login and Register Sytem Y_INI\gamemodes\NpTDM.pwn(791) : warning 225: unreachable code
I:\CokeTDM [0.3e]\Login and Register Sytem Y_INI\gamemodes\NpTDM.pwn(791) : error 029: invalid expression, assumed zero
I:\CokeTDM [0.3e]\Login and Register Sytem Y_INI\gamemodes\NpTDM.pwn(791) : error 004: function "S@@_OnPlayerStateChange" is not implemented
I:\CokeTDM [0.3e]\Login and Register Sytem Y_INI\gamemodes\NpTDM.pwn(796) : warning 225: unreachable code
I:\CokeTDM [0.3e]\Login and Register Sytem Y_INI\gamemodes\NpTDM.pwn(796) : error 029: invalid expression, assumed zero
I:\CokeTDM [0.3e]\Login and Register Sytem Y_INI\gamemodes\NpTDM.pwn(796) : error 004: function "S@@_OnPlayerEnterCheckpoint" is not implemented
I:\CokeTDM [0.3e]\Login and Register Sytem Y_INI\gamemodes\NpTDM.pwn(801) : warning 225: unreachable code
I:\CokeTDM [0.3e]\Login and Register Sytem Y_INI\gamemodes\NpTDM.pwn(801) : error 029: invalid expression, assumed zero
I:\CokeTDM [0.3e]\Login and Register Sytem Y_INI\gamemodes\NpTDM.pwn(801) : error 004: function "S@@_OnPlayerLeaveCheckpoint" is not implemented
I:\CokeTDM [0.3e]\Login and Register Sytem Y_INI\gamemodes\NpTDM.pwn(806) : warning 225: unreachable code
I:\CokeTDM [0.3e]\Login and Register Sytem Y_INI\gamemodes\NpTDM.pwn(806) : error 029: invalid expression, assumed zero
I:\CokeTDM [0.3e]\Login and Register Sytem Y_INI\gamemodes\NpTDM.pwn(806) : error 004: function "S@@_OnPlayerEnterRaceCheckpoint" is not implemented
I:\CokeTDM [0.3e]\Login and Register Sytem Y_INI\gamemodes\NpTDM.pwn(811) : warning 225: unreachable code
I:\CokeTDM [0.3e]\Login and Register Sytem Y_INI\gamemodes\NpTDM.pwn(811) : error 029: invalid expression, assumed zero
I:\CokeTDM [0.3e]\Login and Register Sytem Y_INI\gamemodes\NpTDM.pwn(811) : error 004: function "S@@_OnPlayerLeaveRaceCheckpoint" is not implemented
I:\CokeTDM [0.3e]\Login and Register Sytem Y_INI\gamemodes\NpTDM.pwn(816) : warning 225: unreachable code
I:\CokeTDM [0.3e]\Login and Register Sytem Y_INI\gamemodes\NpTDM.pwn(816) : error 029: invalid expression, assumed zero
I:\CokeTDM [0.3e]\Login and Register Sytem Y_INI\gamemodes\NpTDM.pwn(816) : error 004: function "S@@_OnRconCommand" is not implemented
I:\CokeTDM [0.3e]\Login and Register Sytem Y_INI\gamemodes\NpTDM.pwn(821) : warning 225: unreachable code
I:\CokeTDM [0.3e]\Login and Register Sytem Y_INI\gamemodes\NpTDM.pwn(821) : error 029: invalid expression, assumed zero
I:\CokeTDM [0.3e]\Login and Register Sytem Y_INI\gamemodes\NpTDM.pwn(821) : error 004: function "S@@_OnPlayerRequestSpawn" is not implemented
I:\CokeTDM [0.3e]\Login and Register Sytem Y_INI\gamemodes\NpTDM.pwn(826) : warning 225: unreachable code
I:\CokeTDM [0.3e]\Login and Register Sytem Y_INI\gamemodes\NpTDM.pwn(826) : error 029: invalid expression, assumed zero
I:\CokeTDM [0.3e]\Login and Register Sytem Y_INI\gamemodes\NpTDM.pwn(826) : error 004: function "S@@_OnObjectMoved" is not implemented
I:\CokeTDM [0.3e]\Login and Register Sytem Y_INI\gamemodes\NpTDM.pwn(831) : warning 225: unreachable code
I:\CokeTDM [0.3e]\Login and Register Sytem Y_INI\gamemodes\NpTDM.pwn(831) : error 029: invalid expression, assumed zero
I:\CokeTDM [0.3e]\Login and Register Sytem Y_INI\gamemodes\NpTDM.pwn(831) : error 004: function "S@@_OnPlayerObjectMoved" is not implemented
I:\CokeTDM [0.3e]\Login and Register Sytem Y_INI\gamemodes\NpTDM.pwn(836) : warning 225: unreachable code
I:\CokeTDM [0.3e]\Login and Register Sytem Y_INI\gamemodes\NpTDM.pwn(836) : error 029: invalid expression, assumed zero
I:\CokeTDM [0.3e]\Login and Register Sytem Y_INI\gamemodes\NpTDM.pwn(836) : error 004: function "S@@_OnPlayerPickUpPickup" is not implemented
I:\CokeTDM [0.3e]\Login and Register Sytem Y_INI\gamemodes\NpTDM.pwn(841) : warning 225: unreachable code
I:\CokeTDM [0.3e]\Login and Register Sytem Y_INI\gamemodes\NpTDM.pwn(841) : error 029: invalid expression, assumed zero
I:\CokeTDM [0.3e]\Login and Register Sytem Y_INI\gamemodes\NpTDM.pwn(841) : error 004: function "S@@_OnVehicleMod" is not implemented

Compilation aborted.Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


26 Errors.