Weird Bug. 0.3x (NPC OnClientMessage)
#1

I searched all over the SA-MP wiki and there was nothing concerning this.

Код:
public OnClientMessage(color, text[])
{

	if(text[0] != '/' || color != *****_Message_Color) return;
   
    if(strcmp(text, "/walk", true) == 0)
{
This is crashing the NPC. Even strfind crashes the npc. Is it a bug in the 0.3x sa-mp server version?

The crash is happening any time it calls strfind or strcmp in the OnClientMessage. (on npcmodes only)
Reply
#2

I haven't slept for hours trying to figure out this error and trying to bypass it. There's no documentation on this anywhere on the internet.
Reply
#3

try to make custom func that checks if strings are matching
Reply
#4

Quote:
Originally Posted by detter
Посмотреть сообщение
try to make custom func that checks if strings are matching
Did already, I even used it on a variable that successfully received the text data. I'm going to have to debug this with intellisense -_-
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)