need help help with login
#1

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

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

i havent dialog login or register system its simple.
Reply
#4

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.

Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)