Script Issue - 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: Script Issue (
/showthread.php?tid=247750)
Script Issue -
Nuk3d1nk - 10.04.2011
Hello,
Problem; When I run my gamemode, everything starts up normal, but when anyone connects to the server, it automatically crashes.
I'm new to Scripting, Can you help me
CRASH INFO:
Код:
--------------------------
SA-MP Server: 0.3c R2
Exception At Address: 0x004A319B
Registers:
EAX: 0x0012EFA0 EBX: 0x02701C5C ECX: 0x00000000 EDX: 0x00405910
ESI: 0x00000000 EDI: 0x01613900 EBP: 0x0012EFB0 ESP: 0x0012EF88
EFLAGS: 0x00010286
Stack:
+0000: 0x01613900 0x01613900 0x02701C5C 0xFFFFFFFF
+0010: 0x0012EF88 0x0012EB94 0x0012F180 0x004A6FE4
+0020: 0x004C22A8 0xFFFFFFFF 0x027065EC 0x0040591D
+0030: 0x00000000 0x00401096 0x01613900 0x030B0108
+0040: 0x02A91324 0x00402BB3 0x01613900 0x00000016
+0050: 0x0012EFF0 0x030B0108 0x01CC1088 0x01613900
+0060: 0x00000001 0x0012F438 0x00000000 0x0061EDE0
+0070: 0x0061EDE4 0x0061F020 0x0061B024 0x0061EDF0
+0080: 0x0061B024 0x02701C5C 0x02A91324 0x00000000
+0090: 0x02700020 0x0038F6C8 0x00482AC0 0x01613900
+00A0: 0x0012F03C 0x00000041 0x01613900 0x00000000
+00B0: 0x00000000 0x00000000 0x00000041 0x0047CB49
+00C0: 0x00000000 0x0100D1B3 0x01CC1088 0x0100007F
+00D0: 0x0012F7EC 0x0000000B 0x00000000 0x0100007F
+00E0: 0x0000D1B3 0x00000098 0x00000800 0x00000000
+00F0: 0x0012F07D 0x00000001 0x00000000 0x6165440B
+0100: 0x68545F6E 0x73616D6F 0x00000000 0x00000000
+0110: 0x00000000 0x00000000 0x00000002 0x00000000
+0120: 0x00000038 0x00000000 0x0012F0EC 0x004A2B56
+0130: 0x00000000 0x001E0000 0x001EFB20 0x0000000F
Re: Script Issue -
Kwarde - 10.04.2011
Give us the OnPlayerConnect code. Without it, we can't do ANYTHING.
And does it happen when someone connects, or register/login (or something smilar to that)?
This forum requires that you wait 120 seconds between posts. Please try again in 32 seconds.
For godsake, man... :S
This forum requires that you wait 120 seconds between posts. Please try again in 3 seconds.
man! that doesn't make sense
Re: Script Issue -
aircombat - 10.04.2011
show server log not server crash
Re: Script Issue -
Nuk3d1nk - 10.04.2011
Server Log:
Код:
SA-MP Dedicated Server
----------------------
v0.3c R2, ©2005-2011 SA-MP Team
[12:02:59]
[12:02:59] Server Plugins
[12:02:59] --------------
[12:02:59] Loaded 0 plugins.
[12:02:59]
[12:02:59] Filter Scripts
[12:02:59] ---------------
[12:02:59] Loading filter script 'ladmin4v2.amx'...
[12:02:59]
________________________________________
[12:02:59] ________________________________________
[12:02:59] LAdmin Loading...
[12:02:59] ________________________________________
[12:02:59]
-Configuration Settings Loaded
[12:02:59] -39 Forbidden Names Loaded
[12:02:59] -10 Forbidden Tags Loaded
[12:02:59] -9 Forbidden Words Loaded
[12:02:59] ________________________________________
[12:02:59] LAdmin Version 4.0
[12:02:59] Loaded
[12:02:59] ________________________________________
[12:02:59] Date: 10/4/2011 Time: 12:2 :59
[12:02:59] ________________________________________
[12:02:59] ________________________________________
[12:02:59] Loaded 1 filter scripts.
[12:03:00] EnableTirePopping() function is removed.
[12:03:00] Warning: EnableZoneNames() is removed since 0.3
[12:03:01]
[12:03:01] -[ Apocide Roleplay
[12:03:01] -[ By: Dean - Version v2.0.0.A R1
[12:03:01]
[12:03:01] Number of vehicle models: 122
[12:03:22] Incoming connection: 127.0.0.1:53683
[12:03:22] [join] Dean has joined the server (0:127.0.0.1)
It crashes on connect.
I'm confused on which part you need to see?
Re: Script Issue -
Mean - 10.04.2011
Show us your OnPlayerConnect as Kwarde said.
Re: Script Issue -
Nuk3d1nk - 11.04.2011
Код:
public OnPlayerConnect(playerid)
{
//if(IsPlayerNPC(playerid)) return 1;
F_OnPlayerConnect(playerid);
Re: Script Issue -
tanush - 11.04.2011
umm you preety much forgot return 1; on bottom and }?