09.08.2012, 23:32
Add this underneath x_siren = strok(cmdtext,idx) :
Also, when you use the "case" function.
It always begins with 0.
In other words, type 1 = 0 in the case.
This should fix the crash.
pawn Код:
type = strval(x_siren);
It always begins with 0.
In other words, type 1 = 0 in the case.
pawn Код:
case 0: // inside
{
}
case 1: // roof
{
}
case 2: // off
{
}