SA-MP Forums

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

Reply
 
Thread Tools Display Modes
Old 06/11/2016, 06:01 PM   #1
khanhbgpro
Little Clucker
 
khanhbgpro's Avatar
 
Join Date: Nov 2016
Posts: 19
Reputation: 0
Default Help error :error 017: undefined symbol "ClearChatbox"

Code:
./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 :
Code:
    	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:
Code:
//	SetPlayerJoinCamera(playerid);
	ClearChatbox(playerid);
	SetPlayerVirtualWorld(playerid, 0);
Code 3:
Code:
	// 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;
	}
khanhbgpro is offline   Reply With Quote
Old 06/11/2016, 06:13 PM   #2
khanhbgpro
Little Clucker
 
khanhbgpro's Avatar
 
Join Date: Nov 2016
Posts: 19
Reputation: 0
Default Re: Help error :error 017: undefined symbol "ClearChatbox"

@oMa37 help me
khanhbgpro is offline   Reply With Quote
Old 06/11/2016, 06:15 PM   #3
GoldenLion
Gangsta
 
GoldenLion's Avatar
 
Join Date: Sep 2014
Location: Estonia
Posts: 960
Reputation: 141
Default Re: Help error :error 017: undefined symbol "ClearChatbox"

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.
GoldenLion is offline   Reply With Quote
Old 06/11/2016, 06:21 PM   #4
khanhbgpro
Little Clucker
 
khanhbgpro's Avatar
 
Join Date: Nov 2016
Posts: 19
Reputation: 0
Default Re: Help error :error 017: undefined symbol "ClearChatbox"

Quote:
Originally Posted by GoldenLion View Post
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
khanhbgpro is offline   Reply With Quote
Old 06/11/2016, 06:22 PM   #5
GoldenLion
Gangsta
 
GoldenLion's Avatar
 
Join Date: Sep 2014
Location: Estonia
Posts: 960
Reputation: 141
Default Re: Help error :error 017: undefined symbol "ClearChatbox"

Add this somewhere in your script:
Code:
ClearChatbox(playerid) 
{
    for (new i; i <= 50; i++) SendClientMessage(playerid, -1, "");
}
GoldenLion is offline   Reply With Quote
Old 06/11/2016, 06:28 PM   #6
khanhbgpro
Little Clucker
 
khanhbgpro's Avatar
 
Join Date: Nov 2016
Posts: 19
Reputation: 0
Default Re: Help error :error 017: undefined symbol "ClearChatbox"

Quote:
Originally Posted by GoldenLion View Post
Add this somewhere in your script:
Code:
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"
Code:
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"
Code:
		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;
}
khanhbgpro is offline   Reply With Quote
Old 06/11/2016, 06:44 PM   #7
khanhbgpro
Little Clucker
 
khanhbgpro's Avatar
 
Join Date: Nov 2016
Posts: 19
Reputation: 0
Default Re: Help error :error 017: undefined symbol "ClearChatbox"

help
khanhbgpro is offline   Reply With Quote
Old 06/11/2016, 06:48 PM   #8
GoldenLion
Gangsta
 
GoldenLion's Avatar
 
Join Date: Sep 2014
Location: Estonia
Posts: 960
Reputation: 141
Default Re: Help error :error 017: undefined symbol "ClearChatbox"

PAWN is case-sensetive. Change all of the ClearChatBox's to ClearChatbox because the function is ClearChatbox.
GoldenLion is offline   Reply With Quote
Old 06/11/2016, 06:51 PM   #9
khanhbgpro
Little Clucker
 
khanhbgpro's Avatar
 
Join Date: Nov 2016
Posts: 19
Reputation: 0
Default Re: Help error :error 017: undefined symbol "ClearChatbox"

Quote:
Originally Posted by GoldenLion View Post
Add this somewhere in your script:
Code:
ClearChatbox(playerid) 
{
    for (new i; i <= 50; i++) SendClientMessage(playerid, -1, "");
}
Quote:
Originally Posted by GoldenLion View Post
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 ********?
khanhbgpro is offline   Reply With Quote
Old 06/11/2016, 06:53 PM   #10
GoldenLion
Gangsta
 
GoldenLion's Avatar
 
Join Date: Sep 2014
Location: Estonia
Posts: 960
Reputation: 141
Default Re: Help error :error 017: undefined symbol "ClearChatbox"

I won't give you my ********, but you can find my Skype on my profile page.
GoldenLion 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
"error 017: undefined symbol "vehicleid"" problem. OMonger Scripting Help 5 31/01/2015 12:55 PM
error 017: undefined symbol "ReadPlayer" and error 017: undefined symbol "WritePlayer" brandypol Scripting Help 8 26/08/2014 06:16 PM
[Error] gl_common.inc(58) : error 017: undefined symbol "token_by_delim" cozza123456 Help Archive 2 06/03/2010 09:26 AM


All times are GMT. The time now is 03:44 PM.


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