undefined symbol "Text_MessageBox" using y_text? Help!
#1

Solved, original problem if you wish to see what happened to me:

Hi, I was just starting to use the YSI libraries, starting with y_text and y_languages to make a dual language server but I encountered a problem:

I was about to make a dialog like this:

PHP код:
Text_MessageBox(playeridDialogUnused$TITULO_LOGIN$DIALOGO_LOGIN_PASS_KICK$BOTON_SALIR); 
But when compiling I get that Text_MessageBox is "undefined" which makes no sense to me because I'm including the y_text and y_dialog includes (just in case it was the error's cause, but I've never seen that it's dependant)

Код:
TDM.pwn(282) : error 017: undefined symbol "Text_MessageBox"
TDM.pwn(282) : error 017: undefined symbol "TITULO_LOGIN"
TDM.pwn(282) : error 017: undefined symbol "DIALOGO_LOGIN_PASS_KICK"
TDM.pwn(282) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase
My includes:
PHP код:
#include     <a_mysql>
#include    <sscanf2>
#include <YSI\y_text>
#include <YSI\y_dialog>
#include <YSI\y_languages>
#include <YSI\y_commands>
#include <YSI\y_master> 
DialogUnused it's just a public func with return 1;.
Also the YSI I'm using is the lastest one just released today in .ZIP format on Misiur's GitHub
I don't find anything that would be wrong, a little help please?

Also, I was looking something that would help me to format dialogs using the y_text funcs (with %s, %d, etc.), but I didin't find any info on it, an example would be great!

Thanks!
Reply
#2

Removed. I checked the wrong include, lol. Check the message below (from ******). Apologize.
Reply
#3

Quote:
Originally Posted by ******
Посмотреть сообщение
You only have one button, dialogs need two (one of which can be blank, but must still be specified). Also, you can format the dialog's content by just passing extra parameters after the second button, but only the content - not the title or buttons (because the function would get too complicated).
Can you explain, please, what mean "|||" in a macro? No one answer me or know what it mean
Reply
#4

Quote:
Originally Posted by ******
Посмотреть сообщение
You only have one button, dialogs need two (one of which can be blank, but must still be specified). Also, you can format the dialog's content by just passing extra parameters after the second button, but only the content - not the title or buttons (because the function would get too complicated).
I guess it's my fault because of reading shitty translated tutorials that said I could skip the second button.
Thanks!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)