Help with OnPlayerDeath
#1

Fixed
Reply
#2

Help please i really need this fixed
Reply
#3

String1's size is not enough, you put more than 24 characters into it.
And when you use format(), use it like:
pawn Код:
format(variable, sizeof(variable), "the string", ...);
If you use bigger number than the length of your string, in the place of sizeof(), it will crash.
Reply
#4

Quote:
Originally Posted by Nonameman
Посмотреть сообщение
String1's size is not enough, you put more than 24 characters into it.
And when you use format(), use it like:
pawn Код:
format(variable, sizeof(variable), "the string", ...);
If you use bigger number than the length of your string, in the place of sizeof(), it will crash.
Ok i will try now, but that can cause the whole server get bugged ?
Reply
#5

I don't think so, but give it a try.
Run through the whole code, you may find other problems that could cause crashes and bugs.

Try not to use numbers at all, when you put the length of a string, sizeof(...) is the best way to do it, when the size of the string changes, it changes too.
Reply
#6

thanks it seems to work now
And thanks for the tip about sizeof(..)
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)