./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"
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);
// SetPlayerJoinCamera(playerid); ClearChatbox(playerid); SetPlayerVirtualWorld(playerid, 0);
// 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; }
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.
|
ClearChatbox(playerid) { for (new i; i <= 50; i++) SendClientMessage(playerid, -1, ""); }
Add this somewhere in your script:
Код:
ClearChatbox(playerid) { for (new i; i <= 50; i++) SendClientMessage(playerid, -1, ""); } |
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);
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; }
Add this somewhere in your script:
Код:
ClearChatbox(playerid) { for (new i; i <= 50; i++) SendClientMessage(playerid, -1, ""); } |
PAWN is case-sensetive. Change all of the ClearChatBox's to ClearChatbox because the function is ClearChatbox.
|