SA-MP Forums Archive
Help me to Fix this Problem - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Help me to Fix this Problem (/showthread.php?tid=283768)



Help me to Fix this Problem - ServerScripter - 16.09.2011

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)


Re: Help me to Fix this Problem - Jafet_Macario - 16.09.2011

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



Re: Help me to Fix this Problem - TheArcher - 16.09.2011

You should create the file after the registration is done.


Re: Help me to Fix this Problem - ServerScripter - 16.09.2011

Not Working...


Re: Help me to Fix this Problem - =WoR=G4M3Ov3r - 16.09.2011

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


Re: Help me to Fix this Problem - TheArcher - 16.09.2011

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.


Re: Help me to Fix this Problem - ServerScripter - 16.09.2011

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.



Re: Help me to Fix this Problem - =WoR=G4M3Ov3r - 16.09.2011

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]; 



Re: Help me to Fix this Problem - ServerScripter - 16.09.2011

Код:
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 ...


Re: Help me to Fix this Problem - ServerScripter - 16.09.2011

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