Using an array (enumerator and specifically a string) in a ternary operator causes the compiler to crash
#4

Quote:
Originally Posted by Kwarde
Посмотреть сообщение
Did you try creating a new variable within the function?
PHP код:
//stock kick(blabla)
{
    new 
pName[24];
    
format(pName24Player[kickerid][epd_Username]); //Or if it still doesn't work; format(pName, 24, "%s", Player[kickerid][epd_Username]);
    //Messagestuff ("The server") : (pName)

Compilers sometimes are funny, and when something doesn't work one way, it does work the other way while the principle is the same.
That's not what I was essentially doing as I'm already getting the player's name in OnPlayerConnect. Though, I did bypass the bug like that.

I've posted an issue on Zeex's repository and ****** pretty much confirmed that it got fixed in his compiler patches and it indeed seems to be.
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)