Login makes server crash ? :S - 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Login makes server crash ? :S (
/showthread.php?tid=91730)
Login makes server crash ? :S -
Typhome - 16.08.2009
I did build the script, and i go server for testing script.
I type /register ****** and work's fully, now i did type /login ****** and
SERVER CRASHED.
Help ? :S
Here Script Code's:
http://pastebin.com/m7b65cc0e
Re: Login makes server crash ? :S -
[BDC]Scarface - 16.08.2009
I only had a very quick look at it, but a possibility could be under your /login command; you are overloading a string.
pawn Код:
strmid(tmppass, tmp, 0, strlen(cmdtext), 255); // You have declared the length of your destination string (tmppass) as 64, not 255.
// Should be this
strmid(tmppass, tmp, 0, strlen(cmdtext), 64);
// OR
strmid(tmppass, tmp, 0, strlen(cmdtext), sizeof(tmppass));
Re: Login makes server crash ? :S -
xer0 - 16.08.2009
Maybe.
Because, Your account's skin unsuitable possible.
Re: Login makes server crash ? :S -
Typhome - 17.08.2009
Quote:
Originally Posted by [DRuG
Scarface ]
I only had a very quick look at it, but a possibility could be under your /login command; you are overloading a string.
pawn Код:
strmid(tmppass, tmp, 0, strlen(cmdtext), 255); // You have declared the length of your destination string (tmppass) as 64, not 255.
// Should be this
strmid(tmppass, tmp, 0, strlen(cmdtext), 64); // OR strmid(tmppass, tmp, 0, strlen(cmdtext), sizeof(tmppass));
|
Didnt help, Maybe xer0 .. skin ?
Re: Login makes server crash ? :S -
snoob - 17.08.2009
hi
in your server folder you will find a folder named scriptfiles in that folder make sure there is a folder named sap ...
pawn Код:
format(string3, sizeof(string3), "sap/%s.ini", playername3);
new File: hFile = fopen(string3, io_write);
the script working directory is scriptfiles/sap/
playername.ini... so you need that folder already created.
Re: Login makes server crash ? :S -
Typhome - 17.08.2009
Quote:
Originally Posted by snoob
hi
in your server folder you will find a folder named scriptfiles in that folder make sure there is a folder named sap ...
pawn Код:
format(string3, sizeof(string3), "sap/%s.ini", playername3); new File: hFile = fopen(string3, io_write);
the script working directory is scriptfiles/sap/ playername.ini... so you need that folder already created.
|
I know that, it have folder name sap (Scriptfiles/sap/...)
i did deleted any codes, i go test
Re: Login makes server crash ? :S -
Typhome - 17.08.2009
Woot , i fixed it. Thanks all for who did try helping me
Sorry For DoublePost!
Can anyone look that topic, like how do get: If fly = 30 seconds +1 score