SA-MP Forums

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

Reply
 
Thread Tools Display Modes
Old 28/02/2020, 03:37 PM   #1
AlexUltimate
Little Clucker
 
Join Date: Jan 2020
Posts: 30
Reputation: 2
Default System login register!

C:\Users\alexm\Desktop\Server\pawno\GM.pwn(126) : warning 202: number of arguments does not match definition
C:\Users\alexm\Desktop\Server\pawno\GM.pwn(126) : warning 202: number of arguments does not match definition
C:\Users\alexm\Desktop\Server\pawno\GM.pwn(127) : warning 202: number of arguments does not match definition
C:\Users\alexm\Desktop\Server\pawno\GM.pwn(127) : warning 202: number of arguments does not match definition
C:\Users\alexm\Desktop\Server\pawno\GM.pwn(12 : warning 202: number of arguments does not match definition
C:\Users\alexm\Desktop\Server\pawno\GM.pwn(12 : warning 202: number of arguments does not match definition
C:\Users\alexm\Desktop\Server\pawno\GM.pwn(130) : warning 202: number of arguments does not match definition
C:\Users\alexm\Desktop\Server\pawno\GM.pwn(190) : error 001: expected token: "-string end-", but found "-identifier-"
C:\Users\alexm\Desktop\Server\pawno\GM.pwn(190) : warning 215: expression has no effect
C:\Users\alexm\Desktop\Server\pawno\GM.pwn(190) : error 001: expected token: ";", but found ")"
C:\Users\alexm\Desktop\Server\pawno\GM.pwn(190) : error 029: invalid expression, assumed zero
C:\Users\alexm\Desktop\Server\pawno\GM.pwn(190) : fatal error 107: too many error messages on one line

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


4 Errors.
[Finished in 1.7s]


Line 190:
DialogIALOG_LOGIN(playerid, response, listitem, inputtext[])
{
if(!response)
return Kick(playerid);

gQuery[0] = (EOS);
mysql_format(SQL, gQuery, sizeof gQuery, "SELECT * FROM `server_accounts` WHERE `Name` = '%e' AND `Password` = '%e' LIMIT 1", GetPlayerNameEx(playerid), inputtext);
mysql_pquery(SQL, gQuery, "OnePlayerLogin", "d" playerid);
return true;
}

IsValidEmailAdress(const email[])
{
new at_pos = strfind(email, "@", true);
if(at_pos >= 1)
{
new offset = (at_pos + 1), dot_pos = strfind(email, ".", true, offset);
if(dot_pos > offset)
{
return 1;
}
}
return 0;
}
AlexUltimate is online now   Reply With Quote
Old 28/02/2020, 06:41 PM   #2
BaFFyJunior
Big Clucker
 
Join Date: May 2018
Posts: 77
Reputation: 0
Default Re: System login register!

Maybe like that? If still not working post only the problematic line.
DialogIALOG_LOGIN(playerid, response, listitem, inputtext[])
{
if(!response)
return Kick(playerid);

gQuery[0] = (EOS);
mysql_format(SQL, gQuery, sizeof(gQuery), "SELECT * FROM `server_accounts` WHERE `Name` = '%e' AND `Password` = '%e' LIMIT 1", GetPlayerNameEx(playerid), inputtext);
mysql_pquery(SQL, gQuery, "OnePlayerLogin", "d" playerid);
return true;
}

IsValidEmailAdress(const email[])
{
new at_pos = strfind(email, "@", true);
if(at_pos >= 1)
{
new offset = (at_pos + 1),
dot_pos = strfind(email, ".", true);

if(dot_pos > offset)
return 1;
}
return 0;
}
__________________
BaFFyJunior is offline   Reply With Quote
Old 28/02/2020, 07:10 PM   #3
DomagojSellug
Huge Clucker
 
DomagojSellug's Avatar
 
Join Date: Sep 2016
Location: Croatia
Posts: 255
Reputation: 22
Default Re: System login register!

Please format your posts like this: https://prnt.sc/r97t0i
So it looks more readable, like this:
pawn Code:
// YOUR SCRIPT GOES HERE
__________________

San Andreas Multiplayer server based off Counter Strike: Global Offensive.

Join us today!

DISCORD: discord.sa-go.info
WEBSITE: http://sa-go.info
SERVER IP: samp.sa-go.info
DomagojSellug is offline   Reply With Quote
Old 29/02/2020, 05:39 AM   #4
AlexUltimate
Little Clucker
 
Join Date: Jan 2020
Posts: 30
Reputation: 2
Default Re: System login register!

Here is the system of logging and registration, followed by the following errors:
https://pastebin.com/DiaYm5j5


Error&Warning:
C:\Users\alexm\Desktop\Server\pawno\GM.pwn(126) : warning 202: number of arguments does not match definition
C:\Users\alexm\Desktop\Server\pawno\GM.pwn(126) : warning 202: number of arguments does not match definition
C:\Users\alexm\Desktop\Server\pawno\GM.pwn(127) : warning 202: number of arguments does not match definition
C:\Users\alexm\Desktop\Server\pawno\GM.pwn(127) : warning 202: number of arguments does not match definition
C:\Users\alexm\Desktop\Server\pawno\GM.pwn(12 : warning 202: number of arguments does not match definition
C:\Users\alexm\Desktop\Server\pawno\GM.pwn(12 : warning 202: number of arguments does not match definition
C:\Users\alexm\Desktop\Server\pawno\GM.pwn(130) : warning 202: number of arguments does not match definition
C:\Users\alexm\Desktop\Server\pawno\GM.pwn(18 : error 035: argument type mismatch (argument 3)
C:\Users\alexm\Desktop\Server\pawno\GM.pwn(189) : error 001: expected token: "-string end-", but found "-identifier-"
C:\Users\alexm\Desktop\Server\pawno\GM.pwn(189) : warning 215: expression has no effect
C:\Users\alexm\Desktop\Server\pawno\GM.pwn(189) : error 001: expected token: ";", but found ")"
C:\Users\alexm\Desktop\Server\pawno\GM.pwn(189) : error 029: invalid expression, assumed zero
C:\Users\alexm\Desktop\Server\pawno\GM.pwn(189) : fatal error 107: too many error messages on one line

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


5 Errors.
[Finished in 1.7s]
AlexUltimate is online now   Reply With Quote
Old 29/02/2020, 08:03 AM   #5
SiaReyes
Gangsta
 
Join Date: Mar 2019
Location: Coordinates X,Y,Z
Posts: 622
Reputation: 57
Default Re: System login register!

https://pastebin.com/KguWrpg2

Try this
SiaReyes is offline   Reply With Quote
Old 29/02/2020, 08:35 AM   #6
AlexUltimate
Little Clucker
 
Join Date: Jan 2020
Posts: 30
Reputation: 2
Default Re: System login register!

C:\Users\alexm\Desktop\Server\pawno\GM.pwn(190) : error 001: expected token: "-string end-", but found "-identifier-"
C:\Users\alexm\Desktop\Server\pawno\GM.pwn(190) : warning 215: expression has no effect
C:\Users\alexm\Desktop\Server\pawno\GM.pwn(190) : error 001: expected token: ";", but found ")"
C:\Users\alexm\Desktop\Server\pawno\GM.pwn(190) : error 029: invalid expression, assumed zero
C:\Users\alexm\Desktop\Server\pawno\GM.pwn(190) : fatal error 107: too many error messages on one line
AlexUltimate is online now   Reply With Quote
Old 29/02/2020, 08:36 AM   #7
SiaReyes
Gangsta
 
Join Date: Mar 2019
Location: Coordinates X,Y,Z
Posts: 622
Reputation: 57
Default Re: System login register!

Code:
 mysql_tquery(SQL, gQuery, "OnPlayerLogin", "d" , playerid);
SiaReyes is offline   Reply With Quote
Old 29/02/2020, 08:38 AM   #8
AlexUltimate
Little Clucker
 
Join Date: Jan 2020
Posts: 30
Reputation: 2
Default Re: System login register!

I don't get the dialogues !!
AlexUltimate is online now   Reply With Quote
Old 29/02/2020, 08:41 AM   #9
AlexUltimate
Little Clucker
 
Join Date: Jan 2020
Posts: 30
Reputation: 2
Default Re: System login register!

I don't get the dialogs! When I log in the dialogs don't appear, register / login / email
AlexUltimate is online now   Reply With Quote
Old 29/02/2020, 08:44 AM   #10
SiaReyes
Gangsta
 
Join Date: Mar 2019
Location: Coordinates X,Y,Z
Posts: 622
Reputation: 57
Default Re: System login register!

pawn Code:
public OnPlayerConnect(playerid)
{  
    PlayerInfo[playerid][pLoginTries] = 0;

    gQuery[0] = (EOS);
    mysql_format(SQL, gQuery, sizeof gQuery, "SELECT * FROM `server_accounts` WHERE `Name` = '%e' LIMIT 1", GetPlayerNameEx(playerid));
    mysql_tquery(SQL, gQuery,"CheckPlayerAccount", "i", playerid);
    defer Camera(playerid);
    return 1;
}
SiaReyes 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] Register & Login system (verification code + return password + auto login [by ip]) benel1 Filterscripts 20 26/11/2014 09:05 PM
Register And Login System... Andre02 Scripting Help 9 29/07/2014 07:46 AM
[FilterScript] [FS]Level System for RolePlay + Register/Login System AlexSAMP Filterscripts 23 10/02/2013 11:35 AM
the best login/register system without admin system and show in dialog misho1 Help Archive 2 06/05/2011 12:24 AM
where can i download an admin system and an login and register system dendudes123 Help Archive 3 19/06/2010 06:13 PM


All times are GMT. The time now is 03:04 PM.


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