[Tutorial] Login and Register System - Dialogs - Using Y_INI
#81

Nice Tutorial dude
Reply
#82

where must I create the folder "LoadUser
Reply
#83

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.
Reply
#84

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","");
Reply
#85

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

:O Thanks
Reply
#87

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?
Reply
#88

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

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

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;
}
Reply
#91

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.
Reply
#92

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.
Reply
#93

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
Reply
#94

Deleted.
Wrong Post
Reply
#95

Help please!!!
Reply
#96

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

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!!!!!!
Reply
#98

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 ?
Reply
#99

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
Reply

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.
Reply


Forum Jump:


Users browsing this thread: 4 Guest(s)