Help me to Fix this Problem
#1

First of all , Hi , i have a Registration FS , so , i creat a Folder in scriptfiles with the name : "users"

The Problem is whene i register , the infos doesn't save in "users" folder, i have this problem in a lot of downloaded FS, this is the way to the folder in my FS:

PHP код:
public OnPlayerConnect(playerid)
{
    
format(file128"/users/%s.ini"GetName(playerid));
    
GetPlayerIp(playeridplayerIP16);
    
TogglePlayerSpectating(playerid1);
    if(!
dini_Exists(file))
    {
        
format(str128"{1900FF}Welcome %s \n\nPlease {B31515}register your {FFFFFF}account"GetName(playerid));
        
ShowPlayerDialog(playeridDIALOG_REGISTERDIALOG_STYLE_INPUT"Account Management"str"Register""Quit");
    }
    else
    {
    
format(str128"{1900FF}Welcome %s \n\nPlease {B31515}login to your {FFFFFF}account"GetName(playerid));
    
ShowPlayerDialog(playeridDIALOG_LOGINDIALOG_STYLE_INPUT"Account Management"str"Login""Quit"); 
Please i need your Help(+1rep for any Helper)
Reply
#2

Well, I had this problem with ALL registration/login filterscripts, the way I fixed it is:
Код:
1.Right click on samp-server.exe
2.Click on Properties
3.Click on Compatibility
4.Select Windows XP Service Pack 2 and/or check the box that says Run as Administrator
5.Click Apply/Ok and test it
Reply
#3

You should create the file after the registration is done.
Reply
#4

Not Working...
Reply
#5

PHP код:
format(filesizeof(string), "/users/%s.ini"GetName(playerid)); 
Why'd you use 128 ? instead of sizeof(string) ?
Reply
#6

Quote:
Originally Posted by G4M3Ov3r
Посмотреть сообщение
PHP код:
format(filesizeof(string), "/users/%s.ini"GetName(playerid)); 
Why'd you use 128 ? instead of sizeof(string) ?
He can also use that method but i suggest your beacuse is waste of cells.
Reply
#7

Quote:
Originally Posted by G4M3Ov3r
Посмотреть сообщение
PHP код:
format(filesizeof(string), "/users/%s.ini"GetName(playerid)); 
Why'd you use 128 ? instead of sizeof(string) ?
Your code make to me 10Errors:
Код:
C:\DOCUME~1\PC\Bureau\ZOMBIE~1\FILTER~1\Admin.pwn(117) : error 017: undefined symbol "string"
C:\DOCUME~1\PC\Bureau\ZOMBIE~1\FILTER~1\Admin.pwn(117) : error 029: invalid expression, assumed zero
C:\DOCUME~1\PC\Bureau\ZOMBIE~1\FILTER~1\Admin.pwn(117) : warning 215: expression has no effect
C:\DOCUME~1\PC\Bureau\ZOMBIE~1\FILTER~1\Admin.pwn(158) : error 017: undefined symbol "string"
C:\DOCUME~1\PC\Bureau\ZOMBIE~1\FILTER~1\Admin.pwn(158) : error 029: invalid expression, assumed zero
C:\DOCUME~1\PC\Bureau\ZOMBIE~1\FILTER~1\Admin.pwn(158) : warning 215: expression has no effect
C:\DOCUME~1\PC\Bureau\ZOMBIE~1\FILTER~1\Admin.pwn(176) : error 017: undefined symbol "string"
C:\DOCUME~1\PC\Bureau\ZOMBIE~1\FILTER~1\Admin.pwn(176) : error 029: invalid expression, assumed zero
C:\DOCUME~1\PC\Bureau\ZOMBIE~1\FILTER~1\Admin.pwn(176) : warning 215: expression has no effect
C:\DOCUME~1\PC\Bureau\ZOMBIE~1\FILTER~1\Admin.pwn(212) : error 017: undefined symbol "string"
C:\DOCUME~1\PC\Bureau\ZOMBIE~1\FILTER~1\Admin.pwn(212) : error 029: invalid expression, assumed zero
C:\DOCUME~1\PC\Bureau\ZOMBIE~1\FILTER~1\Admin.pwn(212) : warning 215: expression has no effect
C:\DOCUME~1\PC\Bureau\ZOMBIE~1\FILTER~1\Admin.pwn(441) : error 017: undefined symbol "string"
C:\DOCUME~1\PC\Bureau\ZOMBIE~1\FILTER~1\Admin.pwn(441) : error 029: invalid expression, assumed zero
C:\DOCUME~1\PC\Bureau\ZOMBIE~1\FILTER~1\Admin.pwn(441) : warning 215: expression has no effect
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


10 Errors.
Reply
#8

Quote:
Originally Posted by ServerScripter
Посмотреть сообщение
Your code make to me 10Errors:
Код:
C:\DOCUME~1\PC\Bureau\ZOMBIE~1\FILTER~1\Admin.pwn(117) : error 017: undefined symbol "string"
C:\DOCUME~1\PC\Bureau\ZOMBIE~1\FILTER~1\Admin.pwn(117) : error 029: invalid expression, assumed zero
C:\DOCUME~1\PC\Bureau\ZOMBIE~1\FILTER~1\Admin.pwn(117) : warning 215: expression has no effect
C:\DOCUME~1\PC\Bureau\ZOMBIE~1\FILTER~1\Admin.pwn(158) : error 017: undefined symbol "string"
C:\DOCUME~1\PC\Bureau\ZOMBIE~1\FILTER~1\Admin.pwn(158) : error 029: invalid expression, assumed zero
C:\DOCUME~1\PC\Bureau\ZOMBIE~1\FILTER~1\Admin.pwn(158) : warning 215: expression has no effect
C:\DOCUME~1\PC\Bureau\ZOMBIE~1\FILTER~1\Admin.pwn(176) : error 017: undefined symbol "string"
C:\DOCUME~1\PC\Bureau\ZOMBIE~1\FILTER~1\Admin.pwn(176) : error 029: invalid expression, assumed zero
C:\DOCUME~1\PC\Bureau\ZOMBIE~1\FILTER~1\Admin.pwn(176) : warning 215: expression has no effect
C:\DOCUME~1\PC\Bureau\ZOMBIE~1\FILTER~1\Admin.pwn(212) : error 017: undefined symbol "string"
C:\DOCUME~1\PC\Bureau\ZOMBIE~1\FILTER~1\Admin.pwn(212) : error 029: invalid expression, assumed zero
C:\DOCUME~1\PC\Bureau\ZOMBIE~1\FILTER~1\Admin.pwn(212) : warning 215: expression has no effect
C:\DOCUME~1\PC\Bureau\ZOMBIE~1\FILTER~1\Admin.pwn(441) : error 017: undefined symbol "string"
C:\DOCUME~1\PC\Bureau\ZOMBIE~1\FILTER~1\Admin.pwn(441) : error 029: invalid expression, assumed zero
C:\DOCUME~1\PC\Bureau\ZOMBIE~1\FILTER~1\Admin.pwn(441) : warning 215: expression has no effect
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


10 Errors.

PHP код:
new string[128]; 
Reply
#9

Код:
C:\Documents and Settings\PC\Bureau\Zombie Infection\pawno\include\dini.inc(239) : warning 219: local variable "string" shadows a variable at a preceding level
C:\DOCUME~1\PC\Bureau\ZOMBIE~1\FILTER~1\Admin.pwn(298) : warning 219: local variable "string" shadows a variable at a preceding level
C:\DOCUME~1\PC\Bureau\ZOMBIE~1\FILTER~1\Admin.pwn(320) : warning 219: local variable "string" shadows a variable at a preceding level
C:\DOCUME~1\PC\Bureau\ZOMBIE~1\FILTER~1\Admin.pwn(493) : warning 219: local variable "string" shadows a variable at a preceding level
C:\DOCUME~1\PC\Bureau\ZOMBIE~1\FILTER~1\Admin.pwn(511) : warning 219: local variable "string" shadows a variable at a preceding level
C:\DOCUME~1\PC\Bureau\ZOMBIE~1\FILTER~1\Admin.pwn(554) : warning 219: local variable "string" shadows a variable at a preceding level
C:\DOCUME~1\PC\Bureau\ZOMBIE~1\FILTER~1\Admin.pwn(830) : warning 203: symbol is never used: "string"
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


7 Warnings.
And i have the same problem the accounts doesn't save ...
Reply
#10

BTW : +1Rep for you all , to trying to help me
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)