Login makes server crash ? :S
#1

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
Reply
#2

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));
Reply
#3

Maybe.

Because, Your account's skin unsuitable possible.
Reply
#4

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 ?
Reply
#5

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.
Reply
#6

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
Reply
#7

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
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)