Help error :error 017: undefined symbol "ClearChatbox"
#1

Код:
./includes/NGG-Script.pwn(96712) : error 017: undefined symbol "ClearChatbox"
./includes/NGG-Script.pwn(102784) : error 017: undefined symbol "ClearChatbox"
./includes/NGG-Script.pwn(103105) : warning 219: local variable "type" shadows a variable at a preceding level
./includes/NGG-Script.pwn(107591) : error 017: undefined symbol "ClearChatbox"
./includes/NGG-Script.pwn(115473) : warning 225: unreachable code
./includes/NGG-Script.pwn(123520) : error 017: undefined symbol "ClearChatbox"
./includes/NGG-Script.pwn(123606) : error 017: undefined symbol "ClearChatbox"

Code 1 :
Код:
    	else {
    	    format(szString, sizeof(szString), "[Referral] (New Account: %s (IP:%s)) da duoc gioi thieu boi (Nguoi choi: %s (IP:%s))", GetPlayerNameEx(playerid), currentIP, PlayerInfo[playerid][pReferredBy], newresult);
    	    Log("logs/referral.log", szString);
            mysql_free_result(MainPipeline);
			RegistrationStep[playerid] = 3;
			SetPlayerVirtualWorld(playerid, 0);
			ClearChatbox(playerid);
			TutStep[playerid] = 24;
			TextDrawShowForPlayer(playerid, txtNationSelHelper);
			TextDrawShowForPlayer(playerid, txtNationSelMain);
			PlayerNationSelection[playerid] = -1;
			SetPlayerVirtualWorld(playerid, 0);
			SetPlayerInterior(playerid, 0);
			Streamer_UpdateEx(playerid,1716.1129,-1880.0715,22.0264);
			SetPlayerPos(playerid,1716.1129,-1880.0715,-10.0);
			SetPlayerCameraPos(playerid,1755.0413,-1824.8710,20.2100);
			SetPlayerCameraLookAt(playerid,1716.1129,-1880.0715,22.0264);
Code 2:
Код:
//	SetPlayerJoinCamera(playerid);
	ClearChatbox(playerid);
	SetPlayerVirtualWorld(playerid, 0);
Code 3:
Код:
	// Crash Bug Fix
 	if(strfind(inputtext, "%", true) != -1)
  	{
  	    SendClientMessageEx(playerid, COLOR_GREY, "Nhan vat khong hop le, vui long thu lai.");
		return 1;
	}
	if(dialogid == DIALOG_HUONGDAN)
	{
		if(response)
		{
			ClearChatbox(playerid);
		    TutorijalTimer[playerid] = SetTimerEx("Tutorijal", 400, 0, "ii", playerid, 1);
		}
		else
		{
            SendClientMessageEx(playerid, COLOR_WHITE, "(NGG:RP) Ban khong nhan duoc $50.000 vi khong xem qua huong dan");
		}
		return 1;
	}
Reply
#2

@oMa37 help me
Reply
#3

First of all as you can see ClearChatbox function doesn't exist, second if it's NGG's gamemode then nobody is going to help you.
Reply
#4

Quote:
Originally Posted by GoldenLion
Посмотреть сообщение
First of all as you can see ClearChatbox function doesn't exist, second if it's NGG's gamemode then nobody is going to help you.
How do I do


Please help me
Reply
#5

Add this somewhere in your script:
Код:
ClearChatbox(playerid) 
{
    for (new i; i <= 50; i++) SendClientMessage(playerid, -1, "");
}
Reply
#6

Quote:
Originally Posted by GoldenLion
Посмотреть сообщение
Add this somewhere in your script:
Код:
ClearChatbox(playerid) 
{
    for (new i; i <= 50; i++) SendClientMessage(playerid, -1, "");
}
I encountered a difficulty
./includes/NGG-Script.pwn(6957) : error 017: undefined symbol "ClearChatBox"
Код:
forward Tutorijal(playerid, learnid);
public Tutorijal(playerid, learnid)
{
    if(IsPlayerConnected(playerid))
	{
	    if(learnid == 1)
	    {
            TextDrawShowForPlayer(playerid, box1);
            TextDrawShowForPlayer(playerid, rpg1);
	        PlayAudioStreamForPlayer(playerid, "http://mp3.zing.vn/download/song/Vo-Yeu-DJ-ATM-Remix-Khac-Anh/ZGJmyLHsSxXVhZitLFJyDnkH");
            ClearChatBox(playerid);
            SetPlayerPos(playerid, 1532.972290, -1698.301757, -44.034240);
            TogglePlayerControllable(playerid, 0);
		    InterpolateCameraPos(playerid, 1532.972290, -1698.301757, 44.034240, 1453.464111, -1717.509643, 33.114265, 15000);
			InterpolateCameraLookAt(playerid, 1531.764038, -1702.866455, 42.389961, 1456.435913, -1721.471191, 32.425376, 15000);
./includes/NGG-Script.pwn(7067) : error 017: undefined symbol "ClearChatBox"
Код:
		else if(learnid == 11)
		{
            ClearChatBox(playerid);
			SetCameraBehindPlayer(playerid);
			TextDrawHideForPlayer(playerid, Texts[10]);
			TextDrawHideForPlayer(playerid, box1);
			TextDrawHideForPlayer(playerid, rpg1);
		    SendClientMessageEx(playerid, COLOR_WHITE, "(NGG:RP): Neu ban can tro giup , hay go~ ({FF0000}/newb{FFFFFF})");
			SendClientMessageEx(playerid, COLOR_WHITE, "(NGG:RP): Ban da nhan duoc 10,000$ khi da xem huong dan.");
			GivePlayerCash(playerid, 10000);
			SetPlayerPos(playerid, -2424.9272,518.1115,29.9297);
			TogglePlayerControllable(playerid, 1);
		}
	}
	return 1;
}
Reply
#7

help
Reply
#8

PAWN is case-sensetive. Change all of the ClearChatBox's to ClearChatbox because the function is ClearChatbox.
Reply
#9

Quote:
Originally Posted by GoldenLion
Посмотреть сообщение
Add this somewhere in your script:
Код:
ClearChatbox(playerid) 
{
    for (new i; i <= 50; i++) SendClientMessage(playerid, -1, "");
}
Quote:
Originally Posted by GoldenLion
Посмотреть сообщение
PAWN is case-sensetive. Change all of the ClearChatBox's to ClearChatbox because the function is ClearChatbox.
I did and the results are as above


anyway, I still thank you

Can you give me the address ********?
Reply
#10

I won't give you my ********, but you can find my Skype on my profile page.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)