SA-MP Forums Archive
Whats wrong? - 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)
+--- Thread: Whats wrong? (/showthread.php?tid=392904)



Whats wrong? - Hade. - 16.11.2012

Hey i Beta test my server with friends sometime but there is a problem when my friend logges in i see him but he is like AFK, after 20 sec or se he is in the next position, almost like teleported or so but he is actually moving, what to do?


Re: Whats wrong? - [HK]Ryder[AN] - 16.11.2012

check if your OnPlayerUpdate is returning 1


Re: Whats wrong? - Hade. - 16.11.2012

Quote:
Originally Posted by [HK]Ryder[AN]
Посмотреть сообщение
check if your OnPlayerUpdate is returning 1
Thanks, i had the automatic god mod there and forgot to put return 1; at the end, but can u help with 1 more thing? When i use chat i can see my text and others but they cant see theirs and stuff? This time its not because return..
I have admin mute things at OnPlayerText can that effect too?


Re: Whats wrong? - JaKe Elite - 16.11.2012

Show us the code.


Re: Whats wrong? - Hade. - 16.11.2012

I have this under OnPlayerText

Код:
public OnPlayerText(playerid, text[])
{
	if(ismuted[playerid])
    {
        SendClientMessage(playerid, 0xFF00CC, "Sa oled muted!");
        return 0;
    }
    return 1;
}



Re: Whats wrong? - Sting. - 16.11.2012

I've even faced this problem before. I thought it was a SA-MP malfunction. Well I was wrong and I found out the code to fix it after all.


Re: Whats wrong? - iGetty - 16.11.2012

Change return 1; to

else return 1;

Then try that. Not sure if it will work, but it's worth a shot.


Re: Whats wrong? - Hade. - 16.11.2012

Well tryed it dont know if it works yet..


Re: Whats wrong? - Hade. - 16.11.2012

Nope the chat still doesnt work, i deleted the mute and just added return 1; But still...


Re: Whats wrong? - Hade. - 16.11.2012

Anyone?