SA-MP Forums

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

Reply
 
Thread Tools Display Modes
Old 03/03/2014, 01:39 AM   #441
Praa
Little Clucker
 
Praa's Avatar
 
Join Date: Feb 2014
Location: Bucharest/Frankfurt
Posts: 29
Reputation: 0
Question Re: Login and Register System - Dialogs - Using Y_INI

Hey man, can you help me with an error?

Error:
Code:
#:\#\#\gamemode.pwn(119) : error 001: expected token: "-string end-", but found "-identifier-"
#:\#\#\gamemode.pwn(119) : warning 215: expression has no effect
#:\#\#\gamemode.pwn(119) : error 001: expected token: ";", but found ")"
#:\#\#\gamemode.pwn(119) : error 029: invalid expression, assumed zero
#:\#\#\gamemode.pwn(119) : fatal error 107: too many error messages on one line
Script:
Code:
public OnPlayerConnect(playerid)
{
    if(fexist(UserPath(playerid)))
    {
        INI_ParseFile(UserPath(playerid), "LoadUser_%s", .bExtra = true, .extra = playerid);
        ShowPlayerDialog(playerid, DIALOG_LOGIN, DIALOG_STYLE_INPUT,""COL_WHITE"Login",""COL_WHITE"Type your password below to login.","Login","Quit");
    }
    else
    {
        ShowPlayerDialog(playerid, DIALOG_REGISTER, DIALOG_STYLE_INPUT,""COL_WHITE"Registering...",""COL_WHITE"Type your password below to register a new account.","Register","Quit");
    }
    return 1;
}
The line:
Code:
if(fexist(UserPath(playerid)))
__________________
NEWBIE
"I'm not afraid of dead, I will just go home."
Praa is offline   Reply With Quote
Old 03/03/2014, 01:43 AM   #442
Praa
Little Clucker
 
Praa's Avatar
 
Join Date: Feb 2014
Location: Bucharest/Frankfurt
Posts: 29
Reputation: 0
Lightbulb Re: Login and Register System - Dialogs - Using Y_INI

Quote:
Originally Posted by Extraordinariness View Post
C:\Documents and Settings\SAMP-Purposes\Desktop\SAMP Server\gamemodes\TDScript3.pwn(116) : error 017: undefined symbol "UserPath"
C:\Documents and Settings\SAMP-Purposes\Desktop\SAMP Server\gamemodes\TDScript3.pwn(11 : error 017: undefined symbol "UserPath"
C:\Documents and Settings\SAMP-Purposes\Desktop\SAMP Server\gamemodes\TDScript3.pwn(119) : error 001: expected token: "-string end-", but found "-identifier-"
C:\Documents and Settings\SAMP-Purposes\Desktop\SAMP Server\gamemodes\TDScript3.pwn(119) : error 017: undefined symbol "COL_WHITE"
C:\Documents and Settings\SAMP-Purposes\Desktop\SAMP Server\gamemodes\TDScript3.pwn(119) : warning 215: expression has no effect
C:\Documents and Settings\SAMP-Purposes\Desktop\SAMP Server\gamemodes\TDScript3.pwn(119) : error 001: expected token: "-string end-", but found "-identifier-"
C:\Documents and Settings\SAMP-Purposes\Desktop\SAMP Server\gamemodes\TDScript3.pwn(119) : fatal error 107: too many error messages on one line

I get these errors
Code:
C:\Documents and Settings\SAMP-Purposes\Desktop\SAMP Server\gamemodes\TDScript3.pwn(116) : error 017: undefined symbol "UserPath"
C:\Documents and Settings\SAMP-Purposes\Desktop\SAMP Server\gamemodes\TDScript3.pwn(118) : error 017: undefined symbol "UserPath"

You didn't defined the symbol.
Change the :
Code:
#define PATH "/Users/%s.ini"
to
Code:
#define UserPath "/Users/%s.ini"
And
Code:
C:\Documents and Settings\SAMP-Purposes\Desktop\SAMP Server\gamemodes\TDScript3.pwn(119) : error 017: undefined symbol "COL_WHITE"
you didn't defined the COL_WHITE, which is the White Color

Code:
#define COL_WHITE 0xFFFFFF
try this.
__________________
NEWBIE
"I'm not afraid of dead, I will just go home."
Praa is offline   Reply With Quote
Old 07/03/2014, 12:35 PM   #443
ChandraLouis
Banned
 
Join Date: Mar 2013
Location: Indonesia
Posts: 438
Reputation: 37
Default Re: Login and Register System - Dialogs - Using Y_INI

Help when im connected it keep me to tell me login after i login
ChandraLouis is offline   Reply With Quote
Old 20/03/2014, 10:55 AM   #444
VenomMancer
Gangsta
 
VenomMancer's Avatar
 
Join Date: May 2013
Location: Indonesia (Manado)
Posts: 637
Reputation: 31
Default Re: Login and Register System - Dialogs - Using Y_INI

How to change Name in game with y_ini ?
VenomMancer is offline   Reply With Quote
Old 20/03/2014, 08:20 PM   #445
Flstene
Little Clucker
 
Join Date: Feb 2014
Posts: 10
Reputation: 0
Default Re: Login and Register System - Dialogs - Using Y_INI

how to fix this error


D:\New folder\pawno\new.pwn(4) : fatal error 100: cannot read from file: "YSI\y_ini"

Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase


1 Error.
__________________
Flstene is offline   Reply With Quote
Old 21/03/2014, 04:11 AM   #446
]Rafaellos[
Gangsta
 
Join Date: Feb 2012
Location: Cyprus
Posts: 731
Reputation: 48
Default Re: Login and Register System - Dialogs - Using Y_INI

Download YSI guys. Stop posting your error. If you follow the tutorial correctly everything will work fine.
__________________
]Rafaellos[ is offline   Reply With Quote
Old 23/03/2014, 01:34 AM   #447
VenomMancer
Gangsta
 
VenomMancer's Avatar
 
Join Date: May 2013
Location: Indonesia (Manado)
Posts: 637
Reputation: 31
Default Re: Login and Register System - Dialogs - Using Y_INI

Try to update your SA-MP Version
Maybe :P
VenomMancer is offline   Reply With Quote
Old 25/03/2014, 07:23 AM   #448
gravey
Little Clucker
 
Join Date: Sep 2013
Posts: 1
Reputation: 0
Default Re: Login and Register System - Dialogs - Using Y_INI

Thxs
gravey is offline   Reply With Quote
Old 20/04/2014, 08:38 AM   #449
GeekSiMo
Huge Clucker
 
GeekSiMo's Avatar
 
Join Date: Apr 2014
Location: Morocco, Fes
Posts: 442
Reputation: 37
Default Re: Login and Register System - Dialogs - Using Y_INI

C:\Users\SiMohamed\Downloads\Compressed\Los Santos Turf Wars\gamemodes\LosSantosTW.pwn(976) : error 021: symbol already defined: "OnPlayerConnect"
C:\Users\SiMohamed\Downloads\Compressed\Los Santos Turf Wars\gamemodes\LosSantosTW.pwn(1024) : error 021: symbol already defined: "OnPlayerDisconnect"
C:\Users\SiMohamed\Downloads\Compressed\Los Santos Turf Wars\gamemodes\LosSantosTW.pwn(1051) : warning 209: function "OnPlayerDisconnect" should return a value
C:\Users\SiMohamed\Downloads\Compressed\Los Santos Turf Wars\gamemodes\LosSantosTW.pwn(1313) : error 021: symbol already defined: "OnPlayerDeath"
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase


3 Errors.
__________________
.:: | Xtremies Server | ::.
IP : 94.76.214.51:8237


_________________________________________________

My Works:
[Filterscript] Rainbow Name
[Filterscript] Basic Teleport Menu
GeekSiMo is offline   Reply With Quote
Old 20/04/2014, 09:28 AM   #450
Cena44
Huge Clucker
 
Cena44's Avatar
 
Join Date: May 2012
Location: Niger
Posts: 362
Reputation: 85
Default Re: Login and Register System - Dialogs - Using Y_INI

Quote:
Originally Posted by GeekSiMo View Post
C:\Users\SiMohamed\Downloads\Compressed\Los Santos Turf Wars\gamemodes\LosSantosTW.pwn(976) : error 021: symbol already defined: "OnPlayerConnect"
C:\Users\SiMohamed\Downloads\Compressed\Los Santos Turf Wars\gamemodes\LosSantosTW.pwn(1024) : error 021: symbol already defined: "OnPlayerDisconnect"
C:\Users\SiMohamed\Downloads\Compressed\Los Santos Turf Wars\gamemodes\LosSantosTW.pwn(1051) : warning 209: function "OnPlayerDisconnect" should return a value
C:\Users\SiMohamed\Downloads\Compressed\Los Santos Turf Wars\gamemodes\LosSantosTW.pwn(1313) : error 021: symbol already defined: "OnPlayerDeath"
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase


3 Errors.
You added an extra OnPlayerDeath, OnPlayerConnect, and OnPlayerDisconnect, you also forgot to add
pawn Code:
return 1;
}
to OnPlayerDisconnect.
Cena44 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
[Tutorial] Login & Register system - dialogs - with y_ini Seven_of_Nine Tutorials 30 01/11/2018 10:54 AM
[FilterScript] [FS] ERegLog ( Advanced Register/Login System [Dialogs] ) aircombat Filterscripts 29 09/11/2014 09:30 PM
[Tutorial] Login and Register System - Dialogs - Using SII Kush Tutorials 69 02/07/2013 05:19 PM
[FilterScript] Register/login system (Dini, dialogs) pantelimonfl Filterscripts 6 08/03/2011 04:13 PM


All times are GMT. The time now is 06:06 AM.


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