PDA

Просмотр полной версии : Пишем мод с нуля (MySQL R39-2 0.3z)



Osetin
12.11.2013, 22:47
http://pro-pawn.ru/showthread.php?10548

Salvacore
13.11.2013, 01:10
Для новичков супер.

Mr_David
13.11.2013, 20:04
Хороший урок.

TimoXa32
26.11.2013, 22:58
Отличный урок!

Osetin
27.11.2013, 18:51
Обновил ссылки

Accord
21.12.2013, 18:12
Полезный урок. Но никогда не работал с базой данных MySQL, только с сайтом на данной базе.

Johny
23.12.2013, 11:35
В чем проблема?Денвер запустил,перехожу по ссылку у меня пишет:"Страница недоступна".Я просто первый раз вообще с MySQL работаю:sad:

Osetin
23.12.2013, 14:59
В чем проблема?Денвер запустил,перехожу по ссылку у меня пишет:"Страница недоступна".Я просто первый раз вообще с MySQL работаю:sad:

в браузере вводи localhost/ ,если не включится,пробуй через другой браузер

Johny
23.12.2013, 16:25
в браузере вводи localhost/ ,если не включится,пробуй через другой браузер
Увы не получилось попробую через другой браузер...

Stanley
23.12.2013, 18:27
пожалуй это самый нормальный урок по mysql

Stanley
24.12.2013, 12:58
всё вставил мод скомпилировал без ошибок,создал бд, подключился, захожу на сервер и он оффается

mysql log


[11:45:28] >> mysql_connect(localhost, root, appliquer_bd, ******) on port 3306
[11:45:28] CMySQLHandler::CMySQLHandler() - constructor called.
[11:45:28] CMySQLHandler::CMySQLHandler() - Connecting to "localhost" | DB: "appliquer_bd" | Username: "root"
[11:45:28] CMySQLHandler::Connect() - Access denied for user 'root'@'localhost' (using password: YES) (Error ID: 1045)
[11:45:28] >> mysql_ping( Connection handle: 1 )
[11:45:28] CMySQLHandler::Ping() - You cannot call this function now. (Reason: Dead Connection)
[11:46:01] >> mysql_real_escape_string( Connection handle: 1 )
[11:46:41] >> mysql_connect(localhost, root, appliquer_bd, ******) on port 3306
[11:46:41] CMySQLHandler::CMySQLHandler() - constructor called.
[11:46:41] CMySQLHandler::CMySQLHandler() - Connecting to "localhost" | DB: "appliquer_bd" | Username: "root"
[11:46:41] CMySQLHandler::Connect() - Access denied for user 'root'@'localhost' (using password: YES) (Error ID: 1045)
[11:46:41] >> mysql_ping( Connection handle: 1 )
[11:46:41] CMySQLHandler::Ping() - You cannot call this function now. (Reason: Dead Connection)
[11:47:12] >> mysql_real_escape_string( Connection handle: 1 )
[11:47:57] >> mysql_connect(localhost, root, appliquer_bd, ******) on port 3306
[11:47:57] CMySQLHandler::CMySQLHandler() - constructor called.
[11:47:57] CMySQLHandler::CMySQLHandler() - Connecting to "localhost" | DB: "appliquer_bd" | Username: "root"
[11:47:57] CMySQLHandler::Connect() - Access denied for user 'root'@'localhost' (using password: YES) (Error ID: 1045)
[11:47:57] >> mysql_ping( Connection handle: 1 )
[11:47:57] CMySQLHandler::Ping() - You cannot call this function now. (Reason: Dead Connection)
[11:48:20] >> mysql_real_escape_string( Connection handle: 1 )
[11:49:11] >> mysql_connect(localhost, root, appliquer_bd, ******) on port 3306
[11:49:11] CMySQLHandler::CMySQLHandler() - constructor called.
[11:49:11] CMySQLHandler::CMySQLHandler() - Connecting to "localhost" | DB: "appliquer_bd" | Username: "root"
[11:49:11] CMySQLHandler::Connect() - Access denied for user 'root'@'localhost' (using password: YES) (Error ID: 1045)
[11:49:11] >> mysql_ping( Connection handle: 1 )
[11:49:11] CMySQLHandler::Ping() - You cannot call this function now. (Reason: Dead Connection)
[11:49:32] >> mysql_real_escape_string( Connection handle: 1 )
[11:52:17] >> mysql_connect(localhost, root, appliquer_bd, ******) on port 3306
[11:52:17] CMySQLHandler::CMySQLHandler() - constructor called.
[11:52:17] CMySQLHandler::CMySQLHandler() - Connecting to "localhost" | DB: "appliquer_bd" | Username: "root"
[11:52:17] CMySQLHandler::Connect() - Access denied for user 'root'@'localhost' (using password: YES) (Error ID: 1045)
[11:52:17] >> mysql_ping( Connection handle: 1 )
[11:52:17] CMySQLHandler::Ping() - You cannot call this function now. (Reason: Dead Connection)
[11:53:11] >> mysql_connect(localhost, root, appliquer_bd, ******) on port 3306
[11:53:11] CMySQLHandler::CMySQLHandler() - constructor called.
[11:53:11] CMySQLHandler::CMySQLHandler() - Connecting to "localhost" | DB: "appliquer_bd" | Username: "root"
[11:53:11] CMySQLHandler::Connect() - Access denied for user 'root'@'localhost' (using password: YES) (Error ID: 1045)
[11:53:11] >> mysql_ping( Connection handle: 1 )
[11:53:11] CMySQLHandler::Ping() - You cannot call this function now. (Reason: Dead Connection)
[11:53:32] >> mysql_real_escape_string( Connection handle: 1 )


crashinfo




--------------------------

SA-MP Server: 0.3x



Exception At Address: 0x73861BB0 Module: (MSVCR90.dll)



Registers:

EAX: 0x48397B1D EBX: 0x0123F34E ECX: 0x7FFFFFFE EDX: 0x00000073

ESI: 0x00000000 EDI: 0x48397B1D EBP: 0x0012C604 ESP: 0x0012C380

EFLAGS: 0x00010202



Stack:

+0000: 0x01366540 0x00000000 0x00000000 0x00000109

+0010: 0x00000000 0x00000000 0x00000007 0x02177200

+0020: 0x02170000 0x02178FE0 0x01EF0BD8 0x02171618

+0030: 0x021707D0 0x00000001 0x0012C628 0x00000000

+0040: 0x00000000 0x00000000 0x0123F34E 0x00000000

+0050: 0x00000000 0x00000000 0x774901AD 0x0000001C

+0060: 0x0012C7BC 0x00000000 0x48397B1D 0xFFFFFFFF

+0070: 0x73000109 0x00000000 0x00000180 0x021728F0

+0080: 0x00000001 0x000001BB 0x73845B00 0x02172868

+0090: 0x0000033C 0x02177208 0x00000040 0x000003BC

+00A0: 0x739418FC 0x00000201 0x00000000 0x0012C438

+00B0: 0x73832E2B 0x021766E0 0x00000000 0x11000011

+00C0: 0x01EF1F28 0x0012C480 0x738457B4 0x738A7408

+00D0: 0x00000000 0x000007FF 0x0000000C 0xBF0003BC

+00E0: 0x021700C4 0x00000001 0x0012C454 0x00000002

+00F0: 0x00000008 0x02177208 0x02177208 0x02177203

+0100: 0x00000000 0x0094CF2B 0x02170000 0x019418FC

+0110: 0x0012C3D8 0x01366540 0x773D6684 0x7542D238

+0120: 0x000001AC 0x0012C4D8 0x0012C4E0 0x00000008

+0130: 0x0000000E 0xFFFFFFFF 0x00000003 0x738AD6A0



--------------------------



Loaded Modules:

samp-server.exe A: 0x00400000 - 0x004F5000 (C:\Users\Никита\Desktop\GameMode\samp-server.exe)

ntdll.dll A: 0x77390000 - 0x774CC000 (C:\Windows\SYSTEM32\ntdll.dll)

kernel32.dll A: 0x75ED0000 - 0x75FA4000 (C:\Windows\system32\kernel32.dll)

KERNELBASE.dll A: 0x75420000 - 0x7546B000 (C:\Windows\system32\KERNELBASE.dll)

SHELL32.dll A: 0x76690000 - 0x772DA000 (C:\Windows\system32\SHELL32.dll)

msvcrt.dll A: 0x765E0000 - 0x7668C000 (C:\Windows\system32\msvcrt.dll)

SHLWAPI.dll A: 0x772E0000 - 0x77337000 (C:\Windows\system32\SHLWAPI.dll)

GDI32.dll A: 0x75C10000 - 0x75C5E000 (C:\Windows\system32\GDI32.dll)

USER32.dll A: 0x774F0000 - 0x775B9000 (C:\Windows\system32\USER32.dll)

LPK.dll A: 0x75750000 - 0x7575A000 (C:\Windows\system32\LPK.dll)

USP10.dll A: 0x762B0000 - 0x7634D000 (C:\Windows\system32\USP10.dll)

WSOCK32.dll A: 0x74100000 - 0x74107000 (C:\Windows\system32\WSOCK32.dll)

WS2_32.dll A: 0x75CF0000 - 0x75D25000 (C:\Windows\system32\WS2_32.dll)

RPCRT4.dll A: 0x75B60000 - 0x75C02000 (C:\Windows\system32\RPCRT4.dll)

NSI.dll A: 0x75930000 - 0x75936000 (C:\Windows\system32\NSI.dll)

WINMM.dll A: 0x716B0000 - 0x716E2000 (C:\Windows\system32\WINMM.dll)

IMM32.DLL A: 0x774D0000 - 0x774EF000 (C:\Windows\system32\IMM32.DLL)

MSCTF.dll A: 0x76100000 - 0x761CC000 (C:\Windows\system32\MSCTF.dll)

streamer.dll A: 0x705A0000 - 0x705DE000 (C:\Users\Никита\Desktop\GameMode\plugins\streamer.dll)

MSVCP100.dll A: 0x65150000 - 0x651B9000 (C:\Windows\system32\MSVCP100.dll)

MSVCR100.dll A: 0x64DF0000 - 0x64EAF000 (C:\Windows\system32\MSVCR100.dll)

sscanf.dll A: 0x10000000 - 0x1000D000 (C:\Users\Никита\Desktop\GameMode\plugins\sscanf.dll)

mysql.dll A: 0x01230000 - 0x01245000 (C:\Users\Никита\Desktop\GameMode\plugins\mysql.dll)

LIBMYSQL.dll A: 0x01D60000 - 0x01ED6000 (C:\Windows\system32\LIBMYSQL.dll)

ADVAPI32.dll A: 0x76540000 - 0x765E0000 (C:\Windows\system32\ADVAPI32.dll)

sechost.dll A: 0x760E0000 - 0x760F9000 (C:\Windows\SYSTEM32\sechost.dll)

MSVCR90.dll A: 0x73810000 - 0x738B3000 (C:\Windows\WinSxS\x86_microsoft.vc90.crt_1fc8b3b9a1e18e3b_9.0.30729.6161_none_50934f2ebcb7eb57\MSVCR90.dll)

MSVCP90.dll A: 0x73940000 - 0x739CE000 (C:\Windows\WinSxS\x86_microsoft.vc90.crt_1fc8b3b9a1e18e3b_9.0.30729.6161_none_50934f2ebcb7eb57\MSVCP90.dll)

NLAapi.dll A: 0x73670000 - 0x73680000 (C:\Windows\system32\NLAapi.dll)

napinsp.dll A: 0x69BF0000 - 0x69C00000 (C:\Windows\system32\napinsp.dll)

pnrpnsp.dll A: 0x69BD0000 - 0x69BE2000 (C:\Windows\system32\pnrpnsp.dll)

mswsock.dll A: 0x74DC0000 - 0x74DFC000 (C:\Windows\System32\mswsock.dll)

DNSAPI.dll A: 0x74C90000 - 0x74CD4000 (C:\Windows\system32\DNSAPI.dll)

winrnr.dll A: 0x69BC0000 - 0x69BC8000 (C:\Windows\System32\winrnr.dll)

rasadhlp.dll A: 0x716A0000 - 0x716A6000 (C:\Windows\system32\rasadhlp.dll)

wshtcpip.dll A: 0x74920000 - 0x74925000 (C:\Windows\System32\wshtcpip.dll)

IPHLPAPI.DLL A: 0x73450000 - 0x7346C000 (C:\Windows\system32\IPHLPAPI.DLL)

WINNSI.DLL A: 0x73440000 - 0x73447000 (C:\Windows\system32\WINNSI.DLL)



--------------------------

SA-MP Server: 0.3x



Exception At Address: 0x73861BB0 Module: (MSVCR90.dll)



Registers:

EAX: 0x286853A0 EBX: 0x0032F34E ECX: 0x7FFFFFFE EDX: 0x00000073

ESI: 0x00000000 EDI: 0x286853A0 EBP: 0x0012D640 ESP: 0x0012D3BC

EFLAGS: 0x00010202



Stack:

+0000: 0x01776540 0x00000000 0x00000000 0x00000109

+0010: 0x00000000 0x00000000 0x00000007 0x01FE7200

+0020: 0x01FE0000 0x01FE8FE0 0x020B0BD8 0x01FE1618

+0030: 0x01FE07D0 0x00000001 0x0012D664 0x00000000

+0040: 0x00000000 0x00000000 0x0032F34E 0x00000000

+0050: 0x00000000 0x00000000 0x774A748D 0x0000001C

+0060: 0x0012D7F8 0x00000000 0x286853A0 0xFFFFFFFF

+0070: 0x73000109 0x00000000 0x00000180 0x01FE28F0

+0080: 0x00000001 0x000001BB 0x73845B00 0x01FE2868

+0090: 0x0000033C 0x01FE7208 0x00000040 0x000003BC

+00A0: 0x739418FC 0x00000201 0x00000000 0x0012D474

+00B0: 0x73832E2B 0x01FE66E0 0x00000000 0x11000011

+00C0: 0x020B1F28 0x0012D4BC 0x738457B4 0x738A7408

+00D0: 0x00000000 0x000007FF 0x0000000C 0xBF0003BC

+00E0: 0x01FE00C4 0x00000001 0x0012D490 0x00000002

+00F0: 0x00000008 0x01FE7208 0x01FE7208 0x01FE7203

+0100: 0x00000000 0x0094CF2B 0x01FE0000 0x019418FC

+0110: 0x0012D414 0x01776540 0x773D6684 0x7542D238

+0120: 0x000001A8 0x0012D514 0x0012D51C 0x00000008

+0130: 0x0000000E 0xFFFFFFFF 0x00000003 0x738AD6A0



--------------------------



Loaded Modules:

samp-server.exe A: 0x00400000 - 0x004F5000 (C:\Users\Никита\Desktop\GameMode\samp-server.exe)

ntdll.dll A: 0x77390000 - 0x774CC000 (C:\Windows\SYSTEM32\ntdll.dll)

kernel32.dll A: 0x75ED0000 - 0x75FA4000 (C:\Windows\system32\kernel32.dll)

KERNELBASE.dll A: 0x75420000 - 0x7546B000 (C:\Windows\system32\KERNELBASE.dll)

SHELL32.dll A: 0x76690000 - 0x772DA000 (C:\Windows\system32\SHELL32.dll)

msvcrt.dll A: 0x765E0000 - 0x7668C000 (C:\Windows\system32\msvcrt.dll)

SHLWAPI.dll A: 0x772E0000 - 0x77337000 (C:\Windows\system32\SHLWAPI.dll)

GDI32.dll A: 0x75C10000 - 0x75C5E000 (C:\Windows\system32\GDI32.dll)

USER32.dll A: 0x774F0000 - 0x775B9000 (C:\Windows\system32\USER32.dll)

LPK.dll A: 0x75750000 - 0x7575A000 (C:\Windows\system32\LPK.dll)

USP10.dll A: 0x762B0000 - 0x7634D000 (C:\Windows\system32\USP10.dll)

WSOCK32.dll A: 0x74100000 - 0x74107000 (C:\Windows\system32\WSOCK32.dll)

WS2_32.dll A: 0x75CF0000 - 0x75D25000 (C:\Windows\system32\WS2_32.dll)

RPCRT4.dll A: 0x75B60000 - 0x75C02000 (C:\Windows\system32\RPCRT4.dll)

NSI.dll A: 0x75930000 - 0x75936000 (C:\Windows\system32\NSI.dll)

WINMM.dll A: 0x716B0000 - 0x716E2000 (C:\Windows\system32\WINMM.dll)

IMM32.DLL A: 0x774D0000 - 0x774EF000 (C:\Windows\system32\IMM32.DLL)

MSCTF.dll A: 0x76100000 - 0x761CC000 (C:\Windows\system32\MSCTF.dll)

streamer.dll A: 0x6FCC0000 - 0x6FCFE000 (C:\Users\Никита\Desktop\GameMode\plugins\streamer.dll)

MSVCP100.dll A: 0x65160000 - 0x651C9000 (C:\Windows\system32\MSVCP100.dll)

MSVCR100.dll A: 0x62310000 - 0x623CF000 (C:\Windows\system32\MSVCR100.dll)

sscanf.dll A: 0x10000000 - 0x1000D000 (C:\Users\Никита\Desktop\GameMode\plugins\sscanf.dll)

mysql.dll A: 0x00320000 - 0x00335000 (C:\Users\Никита\Desktop\GameMode\plugins\mysql.dll)

LIBMYSQL.dll A: 0x01D90000 - 0x01F06000 (C:\Windows\system32\LIBMYSQL.dll)

ADVAPI32.dll A: 0x76540000 - 0x765E0000 (C:\Windows\system32\ADVAPI32.dll)

sechost.dll A: 0x760E0000 - 0x760F9000 (C:\Windows\SYSTEM32\sechost.dll)

MSVCR90.dll A: 0x73810000 - 0x738B3000 (C:\Windows\WinSxS\x86_microsoft.vc90.crt_1fc8b3b9a1e18e3b_9.0.30729.6161_none_50934f2ebcb7eb57\MSVCR90.dll)

MSVCP90.dll A: 0x73940000 - 0x739CE000 (C:\Windows\WinSxS\x86_microsoft.vc90.crt_1fc8b3b9a1e18e3b_9.0.30729.6161_none_50934f2ebcb7eb57\MSVCP90.dll)

NLAapi.dll A: 0x73670000 - 0x73680000 (C:\Windows\system32\NLAapi.dll)

napinsp.dll A: 0x69BF0000 - 0x69C00000 (C:\Windows\system32\napinsp.dll)

pnrpnsp.dll A: 0x69BD0000 - 0x69BE2000 (C:\Windows\system32\pnrpnsp.dll)

mswsock.dll A: 0x74DC0000 - 0x74DFC000 (C:\Windows\System32\mswsock.dll)

DNSAPI.dll A: 0x74C90000 - 0x74CD4000 (C:\Windows\system32\DNSAPI.dll)

winrnr.dll A: 0x69BC0000 - 0x69BC8000 (C:\Windows\System32\winrnr.dll)

rasadhlp.dll A: 0x716A0000 - 0x716A6000 (C:\Windows\system32\rasadhlp.dll)

wshtcpip.dll A: 0x74920000 - 0x74925000 (C:\Windows\System32\wshtcpip.dll)

IPHLPAPI.DLL A: 0x73450000 - 0x7346C000 (C:\Windows\system32\IPHLPAPI.DLL)

WINNSI.DLL A: 0x73440000 - 0x73447000 (C:\Windows\system32\WINNSI.DLL)



--------------------------

SA-MP Server: 0.3x



Exception At Address: 0x73861BB0 Module: (MSVCR90.dll)



Registers:

EAX: 0x196261DC EBX: 0x0121F34E ECX: 0x7FFFFFFE EDX: 0x00000073

ESI: 0x00000000 EDI: 0x196261DC EBP: 0x0012D640 ESP: 0x0012D3BC

EFLAGS: 0x00010202



Stack:

+0000: 0x01786540 0x00000000 0x00000000 0x00000109

+0010: 0x00000000 0x00000000 0x00000007 0x012C6FE0

+0020: 0x012C0000 0x012C8FE0 0x020E0BD8 0x012C1618

+0030: 0x012C07D0 0x00000001 0x0012D664 0x00000000

+0040: 0x00000000 0x00000000 0x0121F34E 0x00000000

+0050: 0x00000000 0x00000000 0x774B5F79 0x0000001C

+0060: 0x0012D7F8 0x00000000 0x196261DC 0xFFFFFFFF

+0070: 0x73000109 0x00000000 0x00000180 0x012C28FC

+0080: 0x00000001 0x000001FF 0x73845B00 0x012C2868

+0090: 0x00000380 0x012C6FE8 0x00000040 0x00000400

+00A0: 0x739418FC 0x00000201 0x00000000 0x0012D474

+00B0: 0x73832E2B 0x012C66E0 0x00000000 0x11000011

+00C0: 0x020E1AE8 0x0012D4BC 0x738457B4 0x738A7408

+00D0: 0x00000000 0x000007FF 0x0000000C 0x04000400

+00E0: 0x012C00C4 0x00000001 0x0012D490 0x00000002

+00F0: 0x00000008 0x012C6FE8 0x012C6FE8 0x012C6FE3

+0100: 0x00000000 0x0094CF2B 0x012C0000 0x019418FC

+0110: 0x0012D414 0x01786540 0x773D6684 0x7542D238

+0120: 0x00000194 0x0012D514 0x0012D51C 0x00000008

+0130: 0x0000000E 0xFFFFFFFF 0x00000003 0x738AD6A0



--------------------------



Loaded Modules:

samp-server.exe A: 0x00400000 - 0x004F5000 (C:\Users\Никита\Desktop\GameMode\samp-server.exe)

ntdll.dll A: 0x77390000 - 0x774CC000 (C:\Windows\SYSTEM32\ntdll.dll)

kernel32.dll A: 0x75ED0000 - 0x75FA4000 (C:\Windows\system32\kernel32.dll)

KERNELBASE.dll A: 0x75420000 - 0x7546B000 (C:\Windows\system32\KERNELBASE.dll)

SHELL32.dll A: 0x76690000 - 0x772DA000 (C:\Windows\system32\SHELL32.dll)

msvcrt.dll A: 0x765E0000 - 0x7668C000 (C:\Windows\system32\msvcrt.dll)

SHLWAPI.dll A: 0x772E0000 - 0x77337000 (C:\Windows\system32\SHLWAPI.dll)

GDI32.dll A: 0x75C10000 - 0x75C5E000 (C:\Windows\system32\GDI32.dll)

USER32.dll A: 0x774F0000 - 0x775B9000 (C:\Windows\system32\USER32.dll)

LPK.dll A: 0x75750000 - 0x7575A000 (C:\Windows\system32\LPK.dll)

USP10.dll A: 0x762B0000 - 0x7634D000 (C:\Windows\system32\USP10.dll)

WSOCK32.dll A: 0x74100000 - 0x74107000 (C:\Windows\system32\WSOCK32.dll)

WS2_32.dll A: 0x75CF0000 - 0x75D25000 (C:\Windows\system32\WS2_32.dll)

RPCRT4.dll A: 0x75B60000 - 0x75C02000 (C:\Windows\system32\RPCRT4.dll)

NSI.dll A: 0x75930000 - 0x75936000 (C:\Windows\system32\NSI.dll)

WINMM.dll A: 0x716B0000 - 0x716E2000 (C:\Windows\system32\WINMM.dll)

IMM32.DLL A: 0x774D0000 - 0x774EF000 (C:\Windows\system32\IMM32.DLL)

MSCTF.dll A: 0x76100000 - 0x761CC000 (C:\Windows\system32\MSCTF.dll)

streamer.dll A: 0x650E0000 - 0x6511E000 (C:\Users\Никита\Desktop\GameMode\plugins\streamer.dll)

MSVCP100.dll A: 0x64E40000 - 0x64EA9000 (C:\Windows\system32\MSVCP100.dll)

MSVCR100.dll A: 0x64D80000 - 0x64E3F000 (C:\Windows\system32\MSVCR100.dll)

sscanf.dll A: 0x10000000 - 0x1000D000 (C:\Users\Никита\Desktop\GameMode\plugins\sscanf.dll)

mysql.dll A: 0x01210000 - 0x01225000 (C:\Users\Никита\Desktop\GameMode\plugins\mysql.dll)

LIBMYSQL.dll A: 0x01E90000 - 0x020CE000 (C:\Users\Никита\Desktop\GameMode\LIBMYSQL.dll)

ADVAPI32.dll A: 0x76540000 - 0x765E0000 (C:\Windows\system32\ADVAPI32.dll)

sechost.dll A: 0x760E0000 - 0x760F9000 (C:\Windows\SYSTEM32\sechost.dll)

MSVCR90.dll A: 0x73810000 - 0x738B3000 (C:\Windows\WinSxS\x86_microsoft.vc90.crt_1fc8b3b9a1e18e3b_9.0.30729.6161_none_50934f2ebcb7eb57\MSVCR90.dll)

MSVCP90.dll A: 0x73940000 - 0x739CE000 (C:\Windows\WinSxS\x86_microsoft.vc90.crt_1fc8b3b9a1e18e3b_9.0.30729.6161_none_50934f2ebcb7eb57\MSVCP90.dll)

NLAapi.dll A: 0x73670000 - 0x73680000 (C:\Windows\system32\NLAapi.dll)

napinsp.dll A: 0x69BF0000 - 0x69C00000 (C:\Windows\system32\napinsp.dll)

pnrpnsp.dll A: 0x69BD0000 - 0x69BE2000 (C:\Windows\system32\pnrpnsp.dll)

mswsock.dll A: 0x74DC0000 - 0x74DFC000 (C:\Windows\System32\mswsock.dll)

DNSAPI.dll A: 0x74C90000 - 0x74CD4000 (C:\Windows\system32\DNSAPI.dll)

winrnr.dll A: 0x69BC0000 - 0x69BC8000 (C:\Windows\System32\winrnr.dll)

rasadhlp.dll A: 0x716A0000 - 0x716A6000 (C:\Windows\system32\rasadhlp.dll)

wshtcpip.dll A: 0x74920000 - 0x74925000 (C:\Windows\System32\wshtcpip.dll)

IPHLPAPI.DLL A: 0x73450000 - 0x7346C000 (C:\Windows\system32\IPHLPAPI.DLL)

WINNSI.DLL A: 0x73440000 - 0x73447000 (C:\Windows\system32\WINNSI.DLL)



--------------------------

SA-MP Server: 0.3x



Exception At Address: 0x73861BB0 Module: (MSVCR90.dll)



Registers:

EAX: 0xD843FAF1 EBX: 0x0032F34E ECX: 0x7FFFFFFE EDX: 0x00000073

ESI: 0x00000000 EDI: 0xD843FAF1 EBP: 0x0012D640 ESP: 0x0012D3BC

EFLAGS: 0x00010202



Stack:

+0000: 0x01396540 0x00000000 0x00000000 0x00000109

+0010: 0x00000000 0x00000000 0x00000007 0x02216FE0

+0020: 0x02210000 0x02218FE0 0x02040BD8 0x02211618

+0030: 0x022107D0 0x00000001 0x0012D664 0x00000000

+0040: 0x00000000 0x00000000 0x0032F34E 0x00000000

+0050: 0x00000000 0x00000000 0x7775B882 0x0000001C

+0060: 0x0012D7F8 0x00000000 0xD843FAF1 0xFFFFFFFF

+0070: 0x73000109 0x00000000 0x00000180 0x022128FC

+0080: 0x00000001 0x000001FF 0x73845B00 0x02212868

+0090: 0x00000380 0x02216FE8 0x00000040 0x00000400

+00A0: 0x739418FC 0x00000201 0x00000000 0x0012D474

+00B0: 0x73832E2B 0x022166E0 0x00000000 0x11000011

+00C0: 0x02041AE8 0x0012D4BC 0x738457B4 0x738A7408

+00D0: 0x00000000 0x000007FF 0x0000000C 0x04000400

+00E0: 0x022100C4 0x00000001 0x0012D490 0x00000002

+00F0: 0x00000008 0x02216FE8 0x02216FE8 0x02216FE3

+0100: 0x00000000 0x0094CF2B 0x02210000 0x019418FC

+0110: 0x0012D414 0x01396540 0x773D6684 0x7542D238

+0120: 0x00000194 0x0012D514 0x0012D51C 0x00000008

+0130: 0x0000000E 0xFFFFFFFF 0x00000003 0x738AD6A0



--------------------------



Loaded Modules:

samp-server.exe A: 0x00400000 - 0x004F5000 (C:\Users\Никита\Desktop\GameMode\samp-server.exe)

ntdll.dll A: 0x77390000 - 0x774CC000 (C:\Windows\SYSTEM32\ntdll.dll)

kernel32.dll A: 0x75ED0000 - 0x75FA4000 (C:\Windows\system32\kernel32.dll)

KERNELBASE.dll A: 0x75420000 - 0x7546B000 (C:\Windows\system32\KERNELBASE.dll)

SHELL32.dll A: 0x76690000 - 0x772DA000 (C:\Windows\system32\SHELL32.dll)

msvcrt.dll A: 0x765E0000 - 0x7668C000 (C:\Windows\system32\msvcrt.dll)

SHLWAPI.dll A: 0x772E0000 - 0x77337000 (C:\Windows\system32\SHLWAPI.dll)

GDI32.dll A: 0x75C10000 - 0x75C5E000 (C:\Windows\system32\GDI32.dll)

USER32.dll A: 0x774F0000 - 0x775B9000 (C:\Windows\system32\USER32.dll)

LPK.dll A: 0x75750000 - 0x7575A000 (C:\Windows\system32\LPK.dll)

USP10.dll A: 0x762B0000 - 0x7634D000 (C:\Windows\system32\USP10.dll)

WSOCK32.dll A: 0x74100000 - 0x74107000 (C:\Windows\system32\WSOCK32.dll)

WS2_32.dll A: 0x75CF0000 - 0x75D25000 (C:\Windows\system32\WS2_32.dll)

RPCRT4.dll A: 0x75B60000 - 0x75C02000 (C:\Windows\system32\RPCRT4.dll)

NSI.dll A: 0x75930000 - 0x75936000 (C:\Windows\system32\NSI.dll)

WINMM.dll A: 0x716B0000 - 0x716E2000 (C:\Windows\system32\WINMM.dll)

IMM32.DLL A: 0x774D0000 - 0x774EF000 (C:\Windows\system32\IMM32.DLL)

MSCTF.dll A: 0x76100000 - 0x761CC000 (C:\Windows\system32\MSCTF.dll)

streamer.dll A: 0x705A0000 - 0x705DE000 (C:\Users\Никита\Desktop\GameMode\plugins\streamer.dll)

MSVCP100.dll A: 0x650B0000 - 0x65119000 (C:\Windows\system32\MSVCP100.dll)

MSVCR100.dll A: 0x64DF0000 - 0x64EAF000 (C:\Windows\system32\MSVCR100.dll)

sscanf.dll A: 0x10000000 - 0x1000D000 (C:\Users\Никита\Desktop\GameMode\plugins\sscanf.dll)

mysql.dll A: 0x00320000 - 0x00335000 (C:\Users\Никита\Desktop\GameMode\plugins\mysql.dll)

LIBMYSQL.dll A: 0x01D20000 - 0x01F5E000 (C:\Users\Никита\Desktop\GameMode\LIBMYSQL.dll)

ADVAPI32.dll A: 0x76540000 - 0x765E0000 (C:\Windows\system32\ADVAPI32.dll)

sechost.dll A: 0x760E0000 - 0x760F9000 (C:\Windows\SYSTEM32\sechost.dll)

MSVCR90.dll A: 0x73810000 - 0x738B3000 (C:\Windows\WinSxS\x86_microsoft.vc90.crt_1fc8b3b9a1e18e3b_9.0.30729.6161_none_50934f2ebcb7eb57\MSVCR90.dll)

MSVCP90.dll A: 0x73940000 - 0x739CE000 (C:\Windows\WinSxS\x86_microsoft.vc90.crt_1fc8b3b9a1e18e3b_9.0.30729.6161_none_50934f2ebcb7eb57\MSVCP90.dll)

NLAapi.dll A: 0x73670000 - 0x73680000 (C:\Windows\system32\NLAapi.dll)

napinsp.dll A: 0x69BF0000 - 0x69C00000 (C:\Windows\system32\napinsp.dll)

pnrpnsp.dll A: 0x69BD0000 - 0x69BE2000 (C:\Windows\system32\pnrpnsp.dll)

mswsock.dll A: 0x74DC0000 - 0x74DFC000 (C:\Windows\System32\mswsock.dll)

DNSAPI.dll A: 0x74C90000 - 0x74CD4000 (C:\Windows\system32\DNSAPI.dll)

winrnr.dll A: 0x69BC0000 - 0x69BC8000 (C:\Windows\System32\winrnr.dll)

rasadhlp.dll A: 0x716A0000 - 0x716A6000 (C:\Windows\system32\rasadhlp.dll)

wshtcpip.dll A: 0x74920000 - 0x74925000 (C:\Windows\System32\wshtcpip.dll)

IPHLPAPI.DLL A: 0x73450000 - 0x7346C000 (C:\Windows\system32\IPHLPAPI.DLL)

WINNSI.DLL A: 0x73440000 - 0x73447000 (C:\Windows\system32\WINNSI.DLL)



--------------------------

[11:45:28] >> mysql_connect(localhost, root, appliquer_bd, ******) on port 3306
[11:45:28] CMySQLHandler::CMySQLHandler() - constructor called.
[11:45:28] CMySQLHandler::CMySQLHandler() - Connecting to "localhost" | DB: "appliquer_bd" | Username: "root"
[11:45:28] CMySQLHandler::Connect() - Access denied for user 'root'@'localhost' (using password: YES) (Error ID: 1045)
[11:45:28] >> mysql_ping( Connection handle: 1 )
[11:45:28] CMySQLHandler::Ping() - You cannot call this function now. (Reason: Dead Connection)
[11:46:01] >> mysql_real_escape_string( Connection handle: 1 )
[11:46:41] >> mysql_connect(localhost, root, appliquer_bd, ******) on port 3306
[11:46:41] CMySQLHandler::CMySQLHandler() - constructor called.
[11:46:41] CMySQLHandler::CMySQLHandler() - Connecting to "localhost" | DB: "appliquer_bd" | Username: "root"
[11:46:41] CMySQLHandler::Connect() - Access denied for user 'root'@'localhost' (using password: YES) (Error ID: 1045)
[11:46:41] >> mysql_ping( Connection handle: 1 )
[11:46:41] CMySQLHandler::Ping() - You cannot call this function now. (Reason: Dead Connection)
[11:47:12] >> mysql_real_escape_string( Connection handle: 1 )
[11:47:57] >> mysql_connect(localhost, root, appliquer_bd, ******) on port 3306
[11:47:57] CMySQLHandler::CMySQLHandler() - constructor called.
[11:47:57] CMySQLHandler::CMySQLHandler() - Connecting to "localhost" | DB: "appliquer_bd" | Username: "root"
[11:47:57] CMySQLHandler::Connect() - Access denied for user 'root'@'localhost' (using password: YES) (Error ID: 1045)
[11:47:57] >> mysql_ping( Connection handle: 1 )
[11:47:57] CMySQLHandler::Ping() - You cannot call this function now. (Reason: Dead Connection)
[11:48:20] >> mysql_real_escape_string( Connection handle: 1 )
[11:49:11] >> mysql_connect(localhost, root, appliquer_bd, ******) on port 3306
[11:49:11] CMySQLHandler::CMySQLHandler() - constructor called.
[11:49:11] CMySQLHandler::CMySQLHandler() - Connecting to "localhost" | DB: "appliquer_bd" | Username: "root"
[11:49:11] CMySQLHandler::Connect() - Access denied for user 'root'@'localhost' (using password: YES) (Error ID: 1045)
[11:49:11] >> mysql_ping( Connection handle: 1 )
[11:49:11] CMySQLHandler::Ping() - You cannot call this function now. (Reason: Dead Connection)
[11:49:32] >> mysql_real_escape_string( Connection handle: 1 )
[11:52:17] >> mysql_connect(localhost, root, appliquer_bd, ******) on port 3306
[11:52:17] CMySQLHandler::CMySQLHandler() - constructor called.
[11:52:17] CMySQLHandler::CMySQLHandler() - Connecting to "localhost" | DB: "appliquer_bd" | Username: "root"
[11:52:17] CMySQLHandler::Connect() - Access denied for user 'root'@'localhost' (using password: YES) (Error ID: 1045)
[11:52:17] >> mysql_ping( Connection handle: 1 )
[11:52:17] CMySQLHandler::Ping() - You cannot call this function now. (Reason: Dead Connection)
[11:53:11] >> mysql_connect(localhost, root, appliquer_bd, ******) on port 3306
[11:53:11] CMySQLHandler::CMySQLHandler() - constructor called.
[11:53:11] CMySQLHandler::CMySQLHandler() - Connecting to "localhost" | DB: "appliquer_bd" | Username: "root"
[11:53:11] CMySQLHandler::Connect() - Access denied for user 'root'@'localhost' (using password: YES) (Error ID: 1045)
[11:53:11] >> mysql_ping( Connection handle: 1 )
[11:53:11] CMySQLHandler::Ping() - You cannot call this function now. (Reason: Dead Connection)
[11:53:32] >> mysql_real_escape_string( Connection handle: 1 )

Kenzo64
20.01.2014, 18:04
при компилирование

C:\Users\Anton\Desktop\NEW 20.01.2014\pawno\include\streamer.inc(155) : error 017: undefined symbol "OBJECT_MATERIAL_SIZE_256x128"
C:\Users\Anton\Desktop\NEW 20.01.2014\pawno\include\streamer.inc(313) : warning 235: public function lacks forward declaration (symbol "OnPlayerEditObject")
C:\Users\Anton\Desktop\NEW 20.01.2014\pawno\include\streamer.inc(336) : warning 235: public function lacks forward declaration (symbol "OnPlayerSelectObject")
C:\Users\Anton\Desktop\NEW 20.01.2014\pawno\include\streamer.inc(338) : error 017: undefined symbol "SELECT_OBJECT_PLAYER_OBJECT"
C:\Users\Anton\Desktop\NEW 20.01.2014\gamemodes\RP FOR LIFE.pwn(61) : error 017: undefined symbol "Name"
C:\Users\Anton\Desktop\NEW 20.01.2014\gamemodes\RP FOR LIFE.pwn(62) : error 017: undefined symbol "Name"
C:\Users\Anton\Desktop\NEW 20.01.2014\gamemodes\RP FOR LIFE.pwn(239) : error 079: inconsistent return types (array & non-array)
C:\Users\Anton\Desktop\NEW 20.01.2014\gamemodes\RP FOR LIFE.pwn(240) : error 017: undefined symbol "OnPlayerRegister"
C:\Users\Anton\Desktop\NEW 20.01.2014\gamemodes\RP FOR LIFE.pwn(241) : error 079: inconsistent return types (array & non-array)
C:\Users\Anton\Desktop\NEW 20.01.2014\gamemodes\RP FOR LIFE.pwn(245) : error 079: inconsistent return types (array & non-array)
C:\Users\Anton\Desktop\NEW 20.01.2014\gamemodes\RP FOR LIFE.pwn(246) : error 017: undefined symbol "OnPlayerLogin"
C:\Users\Anton\Desktop\NEW 20.01.2014\gamemodes\RP FOR LIFE.pwn(247) : error 079: inconsistent return types (array & non-array)
C:\Users\Anton\Desktop\NEW 20.01.2014\gamemodes\RP FOR LIFE.pwn(249) : error 002: only a single statement (or expression) can follow each "case"
C:\Users\Anton\Desktop\NEW 20.01.2014\gamemodes\RP FOR LIFE.pwn(249) : error 017: undefined symbol "Name"
C:\Users\Anton\Desktop\NEW 20.01.2014\gamemodes\RP FOR LIFE.pwn(249) : error 017: undefined symbol "i"
C:\Users\Anton\Desktop\NEW 20.01.2014\gamemodes\RP FOR LIFE.pwn(249) : fatal error 107: too many error messages on one line

вложения весь код мода, которого начал писать по вашему уроку

Avertus
21.01.2014, 09:52
XAMPP хороший пакет для поднятия Mysql и веб сервера на у себя на компьютере, что пригодиться для освоения этого урока. Легко устанавливается, готов к работе посе установки. Mysql-сервер и веб сервер запускаются из простенькой панельки. Также с понельки можно перейти сразу в phpmyadmin для раоты с БД.

Osetin
22.01.2014, 23:09
при компилирование

C:\Users\Anton\Desktop\NEW 20.01.2014\pawno\include\streamer.inc(155) : error 017: undefined symbol "OBJECT_MATERIAL_SIZE_256x128"
C:\Users\Anton\Desktop\NEW 20.01.2014\pawno\include\streamer.inc(313) : warning 235: public function lacks forward declaration (symbol "OnPlayerEditObject")
C:\Users\Anton\Desktop\NEW 20.01.2014\pawno\include\streamer.inc(336) : warning 235: public function lacks forward declaration (symbol "OnPlayerSelectObject")
C:\Users\Anton\Desktop\NEW 20.01.2014\pawno\include\streamer.inc(338) : error 017: undefined symbol "SELECT_OBJECT_PLAYER_OBJECT"
C:\Users\Anton\Desktop\NEW 20.01.2014\gamemodes\RP FOR LIFE.pwn(61) : error 017: undefined symbol "Name"
C:\Users\Anton\Desktop\NEW 20.01.2014\gamemodes\RP FOR LIFE.pwn(62) : error 017: undefined symbol "Name"
C:\Users\Anton\Desktop\NEW 20.01.2014\gamemodes\RP FOR LIFE.pwn(239) : error 079: inconsistent return types (array & non-array)
C:\Users\Anton\Desktop\NEW 20.01.2014\gamemodes\RP FOR LIFE.pwn(240) : error 017: undefined symbol "OnPlayerRegister"
C:\Users\Anton\Desktop\NEW 20.01.2014\gamemodes\RP FOR LIFE.pwn(241) : error 079: inconsistent return types (array & non-array)
C:\Users\Anton\Desktop\NEW 20.01.2014\gamemodes\RP FOR LIFE.pwn(245) : error 079: inconsistent return types (array & non-array)
C:\Users\Anton\Desktop\NEW 20.01.2014\gamemodes\RP FOR LIFE.pwn(246) : error 017: undefined symbol "OnPlayerLogin"
C:\Users\Anton\Desktop\NEW 20.01.2014\gamemodes\RP FOR LIFE.pwn(247) : error 079: inconsistent return types (array & non-array)
C:\Users\Anton\Desktop\NEW 20.01.2014\gamemodes\RP FOR LIFE.pwn(249) : error 002: only a single statement (or expression) can follow each "case"
C:\Users\Anton\Desktop\NEW 20.01.2014\gamemodes\RP FOR LIFE.pwn(249) : error 017: undefined symbol "Name"
C:\Users\Anton\Desktop\NEW 20.01.2014\gamemodes\RP FOR LIFE.pwn(249) : error 017: undefined symbol "i"
C:\Users\Anton\Desktop\NEW 20.01.2014\gamemodes\RP FOR LIFE.pwn(249) : fatal error 107: too many error messages on one line

вложения весь код мода, которого начал писать по вашему уроку

Исправили ошибки?

yvlenie
25.01.2014, 13:31
А где же продолжение? Почему 90 проц людей приблизительно на этих местах остаются и дальше не пишут,смысл было начинать? Тогда переименуйте тему,на "Система регистрации mysql r7"

[ForD]
25.01.2014, 13:48
Поддержу человека который отписался выше.
"Пишем мод с нуля (MySQL R7, 0.3x) " - думаю скорее больше подошло-бы название "Копипастим мод с нуля (MySQL R7, 0.3x)"

Ибо никаких знаний кроме скопировать/вставить данный пост не даст,объяснений функций почти нет,так что новички просто скопируют а потом выложат сюда лог ошибок и все.

Prach
09.02.2014, 18:19
Супер! Лови плюс.

Nikolay_King
18.02.2014, 22:24
Очень важная и хорошая для новичков тема

DeimoS
28.03.2014, 11:16
А продолжение будет ?

Всё, что нужно, тут уже дано, по моему. Или вы хотите чтоб за вас написали мод?

Gressie
14.06.2014, 03:19
Регистрация не очень.

Hidden
14.06.2014, 04:17
Всё, что нужно, тут уже дано, по моему. Или вы хотите чтоб за вас написали мод?

Название темы говорит само за себя.

gangzone.ini
24.08.2014, 00:57
Начал - забросил :diablo:

Osetin
25.08.2014, 14:15
Обновлено до R39-2 0.3z

Nurick
25.08.2014, 23:03
Посмотрел исходник предоставленный вами и сам мануал.
Вывод: Не полноценный мануал!

Salvacore
26.08.2014, 00:42
Посмотрел исходник предоставленный вами и сам мануал.
Вывод: Не полноценный мануал!
И что не хватает?

Nurick
26.08.2014, 09:04
И что не хватает?
Вы взгляните на исходник, и скомпилировайте мануал.

Nurick
26.08.2014, 14:17
CREATE TABLE IF NOT EXISTS `accounts` (
`Name` varchar(24) NOT NULL,
`Key` varchar(30) NOT NULL,
`Level` int(3) NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1;

Запросы к базе данных не такие должны быть?

#Esposito
26.08.2014, 23:53
Урок может и хороший, но было бы лучше если к каждому коду было объяснение , краткое хотя бы.Просто я лично мало что понял( я именно про код, всякие SetPlayer и прочее ) , а объяснить никто не согласится.

DeimoS
27.08.2014, 08:36
Урок может и хороший, но было бы лучше если к каждому коду было объяснение , краткое хотя бы.Просто я лично мало что понял( я именно про код, всякие SetPlayer и прочее ) , а объяснить никто не согласится.

Так описание стандартных функций вы можете найти тут (http://wiki.sa-mp.com/wiki/Category:Scripting_Functions) или тут (http://pro-pawn.ru/forumdisplay.php?13-%D0%A1%D1%82%D0%B0%D0%BD%D0%B4%D0%B0%D1%80%D1%82%D0%BD%D1%8B%D0%B5-%D0%B8-%D0%BF%D0%BE%D0%BB%D0%B5%D0%B7%D0%BD%D1%8B%D0%B5-%D1%84%D1%83%D0%BD%D0%BA%D1%86%D0%B8%D0%B8)

denis01
27.08.2014, 19:03
Урок может и хороший, но было бы лучше если к каждому коду было объяснение , краткое хотя бы.Просто я лично мало что понял( я именно про код, всякие SetPlayer и прочее ) , а объяснить никто не согласится.
Согласен с ним описали бы еще всё, как описывал DeimoS свою систему регистрации

MaZaRHaKeR
28.08.2014, 00:24
Пришлось немного повозиться, но всё же заработало))

Salvacore
28.08.2014, 02:20
Мы думаем что дальше писать.
Предложения мне в лс.

denis01
28.08.2014, 06:46
Ошибки на Name(playerid), а вы enum не надо добовлять Name?

MaZaRHaKeR
28.08.2014, 12:52
Ошибки на Name(playerid), а вы enum не надо добовлять Name?

Добавь:

Name(i)
{
new pl[MAX_PLAYER_NAME];
GetPlayerName(i, pl, sizeof(pl));
return pl;
}

DeimoS
28.08.2014, 14:07
Добавь:

Name(i)
{
new pl[MAX_PLAYER_NAME];
GetPlayerName(i, pl, sizeof(pl));
return pl;
}

Фу-фу-фу :punish::bad::bad::bad:


К Enum

enum pInfo
{
Key[128],
Level,
pName[MAX_PLAYER_NAME]
};
new PlayerInfo[MAX_PLAYERS][pInfo];


В начало мода

#define Name(%0) PlayerInfo[%0][pName]

И в OnPlayerConnect

GetPlayerName(playerid, Name(playerid), MAX_PLAYER_NAME);

MaZaRHaKeR
28.08.2014, 14:15
Фу-фу-фу :punish::bad::bad::bad:

Просто вырезка из готового варианта :beee:

Nurick
28.08.2014, 17:43
К Enum

enum pInfo
{
Key[128],
Level,
pName[MAX_PLAYER_NAME]
};
new PlayerInfo[MAX_PLAYERS][pInfo];


В начало мода

#define Name(%0) PlayerInfo[%0][pName]

И в OnPlayerConnect

GetPlayerName(playerid, Name(playerid), MAX_PLAYER_NAME);[/QUOTE]

Добавьте что предоставел DeimoS.
Проредактируйте тему чтобы больше небыло лишних вопросов.

MaZaRHaKeR
29.08.2014, 18:29
Возник вопрос, как добавить, например, сохранение, загрузку денег.
К enum и в бд необходимые поля я добавил, но не совсем понятно, как и куда прописывать сохранение денег у игрока и загрузку величины при логине.

Nurick
29.08.2014, 22:21
Возник вопрос, как добавить, например, сохранение, загрузку денег.
К enum и в бд необходимые поля я добавил, но не совсем понятно, как и куда прописывать сохранение денег у игрока и загрузку величины при логине.

Уделите чуть времени в изучении MySQL (http://wiki.sa-mp.com/wiki/MySQL/R33)

Will
03.09.2014, 16:35
Обновил ссылки

MySQL R7 - Мы будем использовать плагин R7
1. a_mysql.inc закидываем к себе в папку pawno/include вашего сервера.
2. mysql.dll закидываем в папку plugins вашего сервера.
Этот файл обязательно кидаем в папку с сервером
Денвер - И самое главное, это Denwer (Denwer обеспечит нам Базу Данных MySQL PhpMyAdmin).
Устанавливаем Denwer. Думаю, вопросы по его установке не возникнут.

Можете обновить ссылку либо сказать какой файл кидать.
"Этот файл обязательно кидаем в папку с сервером"

PawnoTascher
25.09.2014, 22:15
C:\Users\user\Desktop\samp\pawno\new.pwn(69) : error 017: undefined symbol "Name"
C:\Users\user\Desktop\samp\pawno\new.pwn(70) : error 017: undefined symbol "Name"
C:\Users\user\Desktop\samp\pawno\new.pwn(279) : error 017: undefined symbol "Name"
C:\Users\user\Desktop\samp\pawno\new.pwn(314) : error 017: undefined symbol "Name"
C:\Users\user\Desktop\samp\pawno\new.pwn(331) : error 017: undefined symbol "Name"
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase


5 Errors.

Не получилось помогите:to_take_umbrage:

Nurick
25.09.2014, 22:18
Не получилось помогите:to_take_umbrage:

Будьте добры, прочтите комментарии пользователей. Найдете решение своей проблемы

StanleyGame
28.09.2014, 22:32
Почему я могу писать в чат во время авторизации и спавнится с помощью кнопки "spawn"?
Проверки ведь стоят.
http://i.imgur.com/Y6NpTZH.jpg

DeimoS
28.09.2014, 22:53
if(!GetPVarInt(playerid, "Logged"))
return !SendClientMessage(playerid, -1, "Что бы писать в чат, нужно быть авторизированым.");
на

if(!GetPVarInt(playerid, "Logged"))
{
SendClientMessage(playerid, -1, "Что бы писать в чат, нужно быть авторизированым.");
return 1;
}

StanleyGame
28.09.2014, 23:20
if(!GetPVarInt(playerid, "Logged"))
return !SendClientMessage(playerid, -1, "Что бы писать в чат, нужно быть авторизированым.");
на

if(!GetPVarInt(playerid, "Logged"))
{
SendClientMessage(playerid, -1, "Что бы писать в чат, нужно быть авторизированым.");
return 1;
}
Спасибо, проблему с выводом сообщений в чат я уже сам решил. Не знаю что делать со спавном.

Stats
29.09.2014, 00:30
Спасибо, проблему с выводом сообщений в чат я уже сам решил. Не знаю что делать со спавном.
В public OnPlayerSpawn


if(!GetPVarInt(playerid, "Logged"))
{
SendClientMessage(playerid, -1, "Требуется авторизация.");
Kick(playerid);
return 1;
}

StanleyGame
29.09.2014, 20:55
В public OnPlayerSpawn


if(!GetPVarInt(playerid, "Logged"))
{
SendClientMessage(playerid, -1, "Требуется авторизация.");
Kick(playerid);
return 1;
}

Как кикать я знаю, мне нужна чтобы при нажатии этой кнопки ничего не происходило.

UPD: Исправил.

Eliano
30.09.2014, 21:57
Отличный урок,подойдет для начинающих.

Stats
01.10.2014, 19:23
Отличный урок,подойдет для начинающих.
Урок? По моему мнению, это просто Ctrl+C / Ctrl+V

Eliano
03.10.2014, 19:30
Урок? По моему мнению, это просто Ctrl+C / Ctrl+V

Говорите,как хотите.
Но,такие действительно хорошие уроки,нужно по искать!
'Автор: Pro-Pawn Team'

anonimniy
09.10.2014, 07:03
Собстна, где ф-ия OnPlayerRegCheck?

Maxim_Black
30.10.2014, 21:56
Согласен, вот только деньги не могу никак сохранить. :(

I'm Cobra
18.01.2015, 10:38
А куда делась функция OnPlayerRegCheck?

I'm Cobra
18.01.2015, 12:03
public OnPlayerRegCheck(playerid);
public OnPlayerRegCheck(playerid)
{
if(IsPlayerConnected(playerid))
{
new
rows,
fields
;
cache_get_data(rows, fields);
if(rows)
ShowPlayerDialog(playerid,2,DIALOG_STYLE_PASSWORD,"Авторизация","Здравствуйте!\n\nВы зарегистрированы!\nВведите пароль:","Вход","Отмена");
else
ShowPlayerDialog(playerid,1,DIALOG_STYLE_INPUT,"Регистрация","Добро пожаловать на сервер!\nВаш аккаунт не зарегистрирован!\n\nВведите пароль:","Далее","Отмена");
}
return 1;
}

#WASD
18.01.2015, 21:20
public OnPlayerRegCheck(playerid);
public OnPlayerRegCheck(playerid)
{
if(IsPlayerConnected(playerid))
{
new
rows,
fields
;
cache_get_data(rows, fields);
if(rows)
ShowPlayerDialog(playerid,2,DIALOG_STYLE_PASSWORD,"Авторизация","Здравствуйте!\n\nВы зарегистрированы!\nВведите пароль:","Вход","Отмена");
else
ShowPlayerDialog(playerid,1,DIALOG_STYLE_INPUT,"Регистрация","Добро пожаловать на сервер!\nВаш аккаунт не зарегистрирован!\n\nВведите пароль:","Далее","Отмена");
}
return 1;
}
Мелочь,но все же

public OnPlayerRegCheck(playerid);
public OnPlayerRegCheck(playerid)

I'm Cobra
19.01.2015, 09:36
Мелочь,но все же

public OnPlayerRegCheck(playerid);
public OnPlayerRegCheck(playerid)

И что здесь?

MR_BEN
19.01.2015, 13:34
И что здесь?


forward OnPlayerRegCheck(playerid);
public OnPlayerRegCheck(playerid)

I'm Cobra
19.01.2015, 19:20
forward OnPlayerRegCheck(playerid);
public OnPlayerRegCheck(playerid)

омг -_-

Spectrum
20.01.2015, 12:49
forward OnPlayerRegCheck(playerid);
public OnPlayerRegCheck(playerid)

без разницы

MR_BEN
20.01.2015, 18:46
без разницы

What?

L0ndl3m
21.01.2015, 00:53
What?
Действительно.

Remake
09.11.2015, 23:07
Ребята такая проблема я всё правильно сделал всё подключил и так: Создаю аккаунт всё нормально в базе он появляется тут же релогаюсь собейтом а именно /nick Ololoev_Ololoy и пишу пароль точно такой же как на 1 аккаунте и в бд получается раздвоение


http://hkar.ru/EPa5 скрин

как решить это?

Remake
10.11.2015, 01:04
С паролями вообще беда если зарегать Аккаунт 1 с паролем 123321 и сделать релог и зарегать аккаунт 2 с паролем 123321 то пароль будет 123321123321 а потом опять и так далее жесть

Desulaid
10.11.2015, 17:18
Обнулить надо данные игрока при входе/выходе с сервера.


stock ClearPlayerInformation(playerid)
{
strdel(pInfo[playerid][pPassword], 0, 30);
pInfo[playerid][pID] = 0;
player_is_authorized{playerid} = 0;
}

А при сохранение не помешало бы добавить проверку на то, что игрок авторизован был на сервере. А то, если он зайдет и НЕ авторизуется (то есть данные не будут загружены) приведет к обнулению информации в базе данных. Мы что, нули здесь будем сохранять? :)

stock SaveAccount(playerid)
{
if(player_is_authorized{playerid} == 0) return 1;
new query_string[(21)+(20+MAX_PLAYER_NAME)+(19+MAX_PLAYER_NAME)+(16+30)] = "UPDATE `accounts` SET";
format(query_string, sizeof(query_string), "%s `player_name` = '%s',", query_string, pInfo[playerid][pName]); // мне кажется, или эта строка лишняя?
format(query_string, sizeof(query_string), "%s `password` = '%s'", query_string, pInfo[playerid][pPassword]);
format(query_string, sizeof(query_string), "%s WHERE `player_name` = '%s'", query_string, pInfo[playerid][pName]);
mysql_function_query(mysql_connect_ID, query_string, false, "", "");
return 1;
}

Remake
10.11.2015, 17:28
Обнулить надо данные игрока при входе/выходе с сервера.


stock ClearPlayerInformation(playerid)
{
strdel(pInfo[playerid][pPassword], 0, 30);
pInfo[playerid][pID] = 0;
player_is_authorized{playerid} = 0;
}

А при сохранение не помешало бы добавить проверку на то, что игрок авторизован был на сервере. А то, если он зайдет и НЕ авторизуется (то есть данные не будут загружены) приведет к обнулению информации в базе данных. Мы что, нули здесь будем сохранять? :)

stock SaveAccount(playerid)
{
if(player_is_authorized{playerid} == 0) return 1;
new query_string[(21)+(20+MAX_PLAYER_NAME)+(19+MAX_PLAYER_NAME)+(16+30)] = "UPDATE `accounts` SET";
format(query_string, sizeof(query_string), "%s `player_name` = '%s',", query_string, pInfo[playerid][pName]); // мне кажется, или эта строка лишняя?
format(query_string, sizeof(query_string), "%s `password` = '%s'", query_string, pInfo[playerid][pPassword]);
format(query_string, sizeof(query_string), "%s WHERE `player_name` = '%s'", query_string, pInfo[playerid][pName]);
mysql_function_query(mysql_connect_ID, query_string, false, "", "");
return 1;
}

Что то я не где не видел чтоб пароль обнуляли при выходе... strdel(pInfo[playerid][pPassword], 0, 30);