![]() |
need a solution for repeated error message in RC
i was trying to create a gui window but for some reason i keep getting this error message: "Script: Function addcontrol not found " can someone tell me a solution for that?
edit: i don't think it's the code but if necessary, i'll provide it editx2 : i still don't have a clue of why it was acting the way it did.. so if anyone wants to give me possible reasons for why it was saying that i would be grateful so i could fix it/prevent it in the future. though it's fine now |
PHP Code:
|
Have you tried naming the control a different name? (Removing the selected). Also you dont have clientside indicator in your snippet, but that part is under //#CLIENTSIDE right?
Shot in the dark. |
Quote:
edit: I just changed the name to "Pocket" then changed the control name to "Test_Window", it still for some reason can't create the control. Also just in case.. i notice it doesn't have an image set to it but, it doesn't matter because it won't allow me to create the control in the first place |
I think that you may need to give the control a profile.
Quote:
|
Looks the that container that's calling addcontrol is missing :O
|
Quote:
that said, what exactly did you mean by the container that's calling addcontrol is missing? i couldn't tell much difference because it looked the same as other GUI's i created code-wise. thanks again |
hello!
if you are receiving this error in remote control then it appears '//#CLIENTSIDE' (no white spaces before or afterwards) is not being set properly, as only serverside functions should be producing such a message if you add echo("test" SPC player.account); within onCreated, press F2, go to 'scripts', and you see your account name, then you will know it is occurring clientside as it should be, if you just see "test " within remote control chat then it is definitely occurring serverside |
Quote:
|
| All times are GMT +2. The time now is 11:26 AM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.