Simple Question for you. [ Mysql related or maybe streamer ]
#1

I got one mysql gamemode, in which i got these codes which are getting warnings after result of compilation:
pawn Код:
stock g_mysql_ReturnEscaped(unEscapedString[], connectionHandle)
{
    new EscapedString[256];
    return EscapedString;
}
But when i connect to server then after regstering my server automatically get closed and i am getting this error on my putty:
Код:
Started server on port: 7777, with maxplayers: 500 lanmode is OFF.

Segmentation fault
root@jackson:~/test#
here are two warnings when i compile my script:

pawn Код:
I:\gamemodes\test.pwn(3688) : warning 203: symbol is never used: "connectionHandle"
I:\gamemodes\test.pwn(3688) : warning 203: symbol is never used: "unEscapedString"
Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase


2 Warnings.
please help me.....
Reply
#2

someone help please
Reply
#3

use crashdetect plugin to help you get the error of the crash
Reply
#4

Quote:

here are two warnings when i compile my script:

pawn Код:
I:\gamemodes\test.pwn(3688) : warning 203: symbol is never used: "connectionHandle"
I:\gamemodes\test.pwn(3688) : warning 203: symbol is never used: "unEscapedString"
Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase


2 Warnings.
Quote:

please help me.....

Quote:
Originally Posted by kirollos
Посмотреть сообщение
use crashdetect plugin to help you get the error of the crash
o.O kirollos do u know what her means ?
she want someone to help him fix the warning
Reply
#5

Quote:
Originally Posted by Devilxz97
Посмотреть сообщение
pawn Код:
I:\gamemodes\test.pwn(3688) : warning 203: symbol is never used: "connectionHandle"
I:\gamemodes\test.pwn(3688) : warning 203: symbol is never used: "unEscapedString"
Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase


2 Warnings.




o.O kirollos do u know what her means ?
she want someone to help him fix the warning
but he/she says server crash.

anyway.

pawn Код:
stock g_mysql_ReturnEscaped(unEscapedString[], connectionHandle)
{
    new EscapedString[256];
    mysql_real_escape_string(unEscapedString, EscapedString, connectionHandle); // that's for BlueG's mysql plugin
    return EscapedString;
}
Reply
#6

Quote:
Originally Posted by kirollos
Посмотреть сообщение
but he/she says server crash.

anyway.

pawn Код:
stock g_mysql_ReturnEscaped(unEscapedString[], connectionHandle)
{
    new EscapedString[256];
    mysql_real_escape_string(unEscapedString, EscapedString, connectionHandle); // that's for BlueG's mysql plugin
    return EscapedString;
}
It just fixed the warning, but when i register / login in my server then my server get restarted, everytime with error
Segmentation fault
Reply
#7

Please guys help to solve this problem.. If you think you are real scriptier / developer then it is just simple question for you why lazy?
Reply
#8

Also i am getting these errors after launching server.
Код:
Sat Aug  4 10:40:47 MSK 2012 Server exited, restarting...

Started server on 142.54.177.216:7777, with maxplayers: 50 lanmode is OFF.

Sat Aug  4 10:40:47 MSK 2012 Server exited, restarting...

Started server on 142.54.177.216:7777, with maxplayers: 50 lanmode is OFF.

Sat Aug  4 10:42:19 MSK 2012 watchdog script starting.
Sat Aug  4 10:42:19 MSK 2012 Server exited, restarting...
Sat Aug  4 10:42:19 MSK 2012 Server exited, restarting...
Sat Aug  4 10:42:19 MSK 2012 Server exited, restarting...
Sat Aug  4 10:42:19 MSK 2012 Server exited, restarting...
Sat Aug  4 10:42:19 MSK 2012 Server exited, restarting...
Sat Aug  4 10:42:19 MSK 2012 Server exited, restarting...
Sat Aug  4 10:42:19 MSK 2012 Server exited, restarting...
Sat Aug  4 10:42:19 MSK 2012 Server exited, restarting...
Sat Aug  4 11:24:24 MSK 2012 watchdog script starting.
Reply
#9

Please answer me, this is type of support from sa-mp group, that's all you got? Please this is request to professional scripters to help me out.
Reply
#10

That's what you got for using the NGG script. Stop using stolen en overused scripts and make your own for once. Do as kirollos said and INSTALL THE CRASHDETECT PLUGIN!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)