Thread: Blank String?
View Single Post
Author Message
Spunky
Senior Member
Join Date: May 2008
Location: Orlando, Fl.
Old 06-14-2009 , 18:15   Blank String?
Reply With Quote #1

I have no idea why, but this isn't working:

Code:
if (equali(g_szBundleName[i], ""))

out of this code:

Code:
public cmd_create(id) {     if (!is_user_alive(id))         return PLUGIN_HANDLED     new const iIndex = id - 1     g_mCreateMenu[iIndex] = menu_create("Create Menu", "fnCreateMenu")     for (new i; i < 32; i++)     {         if (equali(g_szBundleName[i], ""))             break         num_to_str(i + 1, g_szKeys[i], 5)         menu_additem(g_mCreateMenu[iIndex], g_szBundleName[i], g_szKeys[i])     }     menu_setprop(g_mCreateMenu[iIndex], MPROP_TITLE, "Create Menu:")     menu_setprop(g_mCreateMenu[iIndex], MPROP_PERPAGE, 7)     menu_setprop(g_mCreateMenu[iIndex], MPROP_EXIT, MEXIT_ALL)     menu_display(id, g_mCreateMenu[iIndex], 0)     return PLUGIN_HANDLED }

I'm not sure that's the problem though. Help?
Spunky is offline
Send a message via AIM to Spunky