SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Scripting Help > Tutorials

Reply
 
Thread Tools Display Modes
Old 20/07/2011, 12:09 PM   #21
samtey
Gangsta
 
samtey's Avatar
 
Join Date: Jul 2011
Posts: 528
Reputation: 20
Default AW: Login and Register System - Dialogs - Using SII

Where should I add Step 6 and 7??
samtey is offline   Reply With Quote
Old 20/07/2011, 05:33 PM   #22
Shockey HD
Gangsta
 
Shockey HD's Avatar
 
Join Date: Jul 2011
Posts: 684
Reputation: 14
Default Re: AW: Login and Register System - Dialogs - Using SII

Quote:
Originally Posted by samtey View Post
Where should I add Step 6 and 7??
Very top of script, and the stock goes anywhere, other than that. Good tutorial Kush
__________________
Shockey HD is offline   Reply With Quote
Old 20/07/2011, 05:36 PM   #23
Dark.Angel
Huge Clucker
 
Join Date: Nov 2010
Posts: 255
Reputation: 8
Default Re: Login and Register System - Dialogs - Using SII

Very good =)

This forum requires that you wait 120 seconds between posts. Please try again in 9 seconds.
Dark.Angel is offline   Reply With Quote
Old 20/07/2011, 07:16 PM   #24
samtey
Gangsta
 
samtey's Avatar
 
Join Date: Jul 2011
Posts: 528
Reputation: 20
Default AW: Re: AW: Login and Register System - Dialogs - Using SII

Quote:
Originally Posted by Shockey HD View Post
Very top of script, and the stock goes anywhere, other than that. Good tutorial Kush

Where is anywhere? Step 6 before the includes?
samtey is offline   Reply With Quote
Old 20/07/2011, 07:20 PM   #25
Kush
Gangsta
 
Join Date: May 2011
Posts: 781
Reputation: 126
Default Re: Login and Register System - Dialogs - Using SII

Nothing goes before includes, except comments.
__________________
Quote:
Originally Posted by Dripac
i have more reputation than you, that means i am more clever than you my friend
Kush is offline   Reply With Quote
Old 20/07/2011, 07:27 PM   #26
Shockey HD
Gangsta
 
Shockey HD's Avatar
 
Join Date: Jul 2011
Posts: 684
Reputation: 14
Default Re: AW: Re: AW: Login and Register System - Dialogs - Using SII

Quote:
Originally Posted by samtey View Post
Where is anywhere? Step 6 before the includes?
Around the bottom i guess, After a public? Where ever except in front of the includes and defines like Kush Said.
__________________
Shockey HD is offline   Reply With Quote
Old 20/07/2011, 07:54 PM   #27
samtey
Gangsta
 
samtey's Avatar
 
Join Date: Jul 2011
Posts: 528
Reputation: 20
Default AW: Login and Register System - Dialogs - Using SII

Omg, 7 ERRORS! What did I do wrong?

Code:
(48) : error 017: undefined symbol "strcmp"
(48) : warning 215: expression has no effect
(48) : warning 215: expression has no effect
(48) : warning 215: expression has no effect
(48) : error 001: expected token: ";", but found ")"
(48) : error 029: invalid expression, assumed zero
(48) : fatal error 107: too many error messages on one line
Here a part of my script, includes line 48!
Code:
// This is a comment
// uncomment the line below if you want to write a filterscript
//#define FILTERSCRIPT

#include <SII>
#include <a_samp>

#define DIALOG_REGISTER 2000
#define DIALOG_LOGIN 2001
#define WHITE "{FFFFFF}"
#define RED "{F81414}"
#define GREEN "{00FF22}"
#define LIGHTBLUE "{00CED1}"
new gPlayerName[MAX_PLAYERS][MAX_PLAYER_NAME];

#define TEAM_GROVE 1
#define TEAM_BALLA 2
#define TEAM_VAGOS 3
#define TEAM_GROVE_COLOR 0x00FF00AA // Bright Green (in RGBA format)
#define TEAM_BALLA_COLOR 0xFF00FFAA // Bright Purple
#define TEAM_VAGOS_COLOR 0xFFFF00AA // Yellow
new gTeam[MAX_PLAYERS];

#if defined FILTERSCRIPT

public OnFilterScriptInit()
{
    print("\n--------------------------------------");
    print(" Blank Filterscript by your name here");
    print("--------------------------------------\n");
    return 1;
}

public OnFilterScriptExit()
{
    return 1;
}

#else

main()
{
    print("\n----------------------------------");
    print(" Blank Gamemode by your name here");
    print("----------------------------------\n");
}

#endif                                                       //LINE WITH THE ERRORS, LINE 48!


enum pInfo
{
    pPass,
    pScore,
    pCash,
    pAdmin,
}
new PlayerInfo[MAX_PLAYERS][pInfo];



stock getINI(playerid)
{
  new account[64];
  format(account,30,"Users/%s.ini",gPlayerName[playerid]);
  return account;
}
#endif has got a problem!
samtey is offline   Reply With Quote
Old 20/07/2011, 07:56 PM   #28
System64
Gangsta
 
System64's Avatar
 
Join Date: May 2011
Location: Zadar, Croatia
Posts: 933
Reputation: 143
Default Re: Login and Register System - Dialogs - Using SII

pawn Code:
#include <a_samp>
#include <SII>

#define DIALOG_REGISTER 2000
#define DIALOG_LOGIN 2001
#define WHITE "{FFFFFF}"
#define RED "{F81414}"
#define GREEN "{00FF22}"
#define LIGHTBLUE "{00CED1}"
new gPlayerName[MAX_PLAYERS][MAX_PLAYER_NAME];

#define TEAM_GROVE 1
#define TEAM_BALLA 2
#define TEAM_VAGOS 3
#define TEAM_GROVE_COLOR 0x00FF00AA // Bright Green (in RGBA format)
#define TEAM_BALLA_COLOR 0xFF00FFAA // Bright Purple
#define TEAM_VAGOS_COLOR 0xFFFF00AA // Yellow
new gTeam[MAX_PLAYERS];

public OnFilterScriptInit()
{
    print("\n--------------------------------------");
    print(" Blank Filterscript by your name here");
    print("--------------------------------------\n");
    return 1;
}

public OnFilterScriptExit()
{
    return 1;
}

enum pInfo
{
    pPass,
    pScore,
    pCash,
    pAdmin,
}
new PlayerInfo[MAX_PLAYERS][pInfo];



stock getINI(playerid)
{
  new account[64];
  format(account,30,"Users/%s.ini",gPlayerName[playerid]);
  return account;
}
__________________
All my works
I left SA:MP! Maybe once I start scripting again but now I'm based on web programming
Soon, I'll buy domain system32.com.hr but for now you can contact me on LogoOff or on my Youtube channel!
System64 is offline   Reply With Quote
Old 20/07/2011, 08:01 PM   #29
samtey
Gangsta
 
samtey's Avatar
 
Join Date: Jul 2011
Posts: 528
Reputation: 20
Default AW: Login and Register System - Dialogs - Using SII

Ehm, thanks, but would you please say what you changed?
samtey is offline   Reply With Quote
Old 20/07/2011, 08:08 PM   #30
samtey
Gangsta
 
samtey's Avatar
 
Join Date: Jul 2011
Posts: 528
Reputation: 20
Default AW: Login and Register System - Dialogs - Using SII

Lol, another error, what's wrong this time?
Code:
deathmatch.pwn(256) : warning 217: loose indentation
Code:
public OnPlayerDisconnect(playerid, reason)
{

if(INI_Open(getINI(playerid))) {

    INI_WriteInt("Score",PlayerInfo[playerid][pScore]);
    INI_WriteInt("Cash",PlayerInfo[playerid][pCash]);
    INI_WriteInt("Admin",PlayerInfo[playerid][pAdmin]);

    INI_Save();
    INI_Close();
    }
    return 1; // what the hell is wrong here?
}
samtey is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[FilterScript] [FS] ERegLog ( Advanced Register/Login System [Dialogs] ) aircombat Filterscripts 29 09/11/2014 09:30 PM
[FilterScript] Register/login system (Dini, dialogs) pantelimonfl Filterscripts 6 08/03/2011 04:13 PM
/register /login dialogs geerdinho8 Help Archive 23 01/05/2010 02:31 PM
[Help] Register/Login Dialogs andershh Help Archive 0 20/04/2010 07:09 PM


All times are GMT. The time now is 07:12 PM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.