05.01.2013, 10:00
Quote:
|
Ok I'll try to add those code, thanks.
But I still can't understand why it crashes like that. I made a test some days ago: pawn Code:
Anyway, that's another weird problem I faced. I'll try to make the protection anyway, but I just can't understand why it happens. I also do not have any chance to test the code, though I hope no one will try to test it. ![]() |
Code:
public OnFilterScriptInit()
{
new empty[16];//not assigning a string, then it is null. If formatting it as "" it will add the /0 character to the first byte
CallLocalFunction(test,"s",empty);//afaik print doesn't crash with empty strings, calllocalfunction does
return 1;
}
forward test(aaa[]);
public test(aaa[])
{
print(aaa);
return 1;
}



