SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Scripting Help

Reply
 
Thread Tools Display Modes
Old 11/07/2017, 01:27 AM   #1
SteSte
Big Clucker
 
SteSte's Avatar
 
Join Date: Aug 2015
Location: United States
Posts: 183
Reputation: 20
Default Crash on cmd (FCNPC)

Code:
=========================== FCNPC Exception Handler ============================
Address: 0x72f1deb0

Registers:
EAX: 0x0 - EBX: 0x1 - ECX: 0x0 - EDX: 0x1
ESI: 0x0 - EDI: 0x0 - EBP: 0x0 - ESP: 0x12fd94

Stack:
0x0: 0x7531179c - 0x4: 0x74 - 0x8: 0x0 - 0xC: 0x753117c4 - 0x10: 0xf0502e81 - 0x14: 0x7607c4d0
0x18: 0x74 - 0x1C: 0x0 - 0x20: 0x771e539c

Information:
  System: Windows
  SA-MP: 0.3.7 R2-1
  FCNPC: 1.7.3

Functions:
  FUNC_CPlayerPool__DeletePlayer: 0x466570
  FUNC_CPlayer__Kill: 0x484620
  FUNC_CPlayer__EnterVehicle: 0x484c70
  FUNC_CPlayer__ExitVehicle: 0x484f50
  FUNC_CPlayer__SpawnForWorld: 0x486d30
  FUNC_GetVehicleModelInfo: 0x488240
  FUNC_CConsole__GetIntVariable: 0x48b5b0
  FUNC_ClientJoin_RPC: 0x4918f0

Pointers:
  VAR_ServerAuthentication: 0x4f5fe8
  VAR_NetVersion: 0xfd9

Offsets:
  OFFSET_RemoteSystemManager: 0x33c
  OFFSET_RemoteSystemSize: 0xcb8
  OFFSET_RemoteSystem__ConnectMode: 0xcb0
  OFFSET_RemoteSystem__Unknown: 0xcb5
=========================== FCNPC Exception Handler ============================
__________________

Last edited by SteSte; 11/07/2017 at 11:25 AM.
SteSte is offline   Reply With Quote
Old 11/07/2017, 02:54 AM   #2
oSAINTo
Huge Clucker
 
oSAINTo's Avatar
 
Join Date: Aug 2015
Posts: 204
Reputation: 35
Default Re: Crash on cmd (FCNPC)

Change "s[15]" to "s[18]"
Probably won't fix it but worth a shot.
oSAINTo is offline   Reply With Quote
Old 11/07/2017, 11:01 AM   #3
NaS
High-roller
 
NaS's Avatar
 
Join Date: Mar 2008
Location: 🇩🇪
Posts: 1,786
Reputation: 635
Default Re: Crash on cmd (FCNPC)

You are connecting an NPC with an empty name.

You create a new variable (cname) but create the NPC before writing something to it.

pawn Code:
new cname[24], npc = FCNPC_Create(cname)
NaS is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
FCNPC Server crash Amads Scripting Help 5 13/11/2016 12:57 PM
FCNPC Crash log iLearner Server Support 0 26/10/2016 08:26 PM
FCNPC GOD mod bug HELP :( peti784 Scripting Help 0 07/09/2016 04:57 PM
Help Crash FCNPC Jastak Scripting Help 4 03/09/2015 06:44 PM
FCNPC Error & Crash benel1 Scripting Help 2 24/08/2015 08:26 AM


All times are GMT. The time now is 10:35 AM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.