m_pTextPass is a pointer to a char not a char array and thus cant store the
result in it.
Change it to:
char m_pTextUser[255];
char m_pTextPass[255];
nLena = 255
steven belmans wrote:
> Hi all.
> For some reason this piece of code forces my mod crash! I don't have a clue
> of what's going rong.
> char *m_pTextUser = "";
> char *m_pTextPass = "";
> int nLena = m_pUser->GetTextLength() + 1;
> int nLenb = m_pPassword->GetTextLength() + 1;
> m_pUser->SetText("terrorcell");
> m_pUser->GetText(m_pTextUser, nLena);// m_pUser is a vgui::TextEntry
> m_pPassword->GetText(m_pTextPass, nLenb);// m_pPassword is a
> vgui::TextEntry
> Msg(m_pTextUser);
> Msg(m_pTextPass);
> I have no compile error,s / warnings.
> Thanks in advance
>
> _________________________________________________________________
> Hebben jij en je vrienden leuke foto's van jullie feestje? Maak een
> groepsalbum en geniet nog extra na.
> http://www.microsoft.com/belux/nl/windows/windowslive/products/photos.aspx
> _______________________________________________
> To unsubscribe, edit your list preferences, or view the list archives, please
> visit:
> http://list.valvesoftware.com/mailman/listinfo/hlcoders
>
>
_______________________________________________
To unsubscribe, edit your list preferences, or view the list archives, please
visit:
http://list.valvesoftware.com/mailman/listinfo/hlcoders