SA-MP Forums Archive
need help help with login - 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: need help help with login (/showthread.php?tid=516928)



need help help with login - ScripteRNaBEEL - 02.06.2014

any one can help me to make like this when i login in my srv
with satdm.


Re: need help help with login - SyntaxQ - 02.06.2014

pawn Код:
new gTotalRegisters, gTotalLogins;

// Under OnDialogResponse

// Your register dialog
if (dialogid == DIALOG_REGISTER)
{
    gTotalRegisters++;
    // Save gTotalRegisters according to your saving system
}

// Your login dialog
if (dialogid == DIALOG_LOGIN)
{
    gTotalLogins++;
    // Save gTotalLogins according to your saving system
}

public OnGameModeInit()
{
    // Load the value of total logins into gTotalLogins variable and same for gTotalRegisters..
}

new str[128];
format(str, sizeof(str), "%d players are registered with %d total successfull logins", gTotalRegisters, gTotalLogins);
// Send this where you want to



Re: need help help with login - ScripteRNaBEEL - 02.06.2014

i havent dialog login or register system its simple.


Re: need help help with login - ScripteRNaBEEL - 02.06.2014

getthing bug
Quote:

F:\Program Files\RBCluBxB v6.5\Gamemodes\SATDM.pwn(25902) : error 017: undefined symbol "dialogid"
F:\Program Files\RBCluBxB v6.5\Gamemodes\SATDM.pwn(2590 : error 017: undefined symbol "dialogid"
F:\Program Files\RBCluBxB v6.5\Gamemodes\SATDM.pwn(29754) : warning 219: local variable "score" shadows a variable at a preceding level
F:\Program Files\RBCluBxB v6.5\Gamemodes\SATDM.pwn(29754) : warning 204: symbol is assigned a value that is never used: "score"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


2 Errors.