Function returning string crash pawncc
#1

Hi, I've this function :
Код:
_GetWeaponName(weaponid)
{
    if(weaponid > 54)
    {
        return "(unused)";//gWeaponName[52]
    }
    return gWeaponName[weaponid];
}
return "(unused)"; crash pawncc during compilation (pawncc don't say anything, I got an empty box), I must return a var. Why ?
Reply


Messages In This Thread
Function returning string crash pawncc - by ZecKo - 04.10.2010, 14:31
Re: Function returning string crash pawncc - by Rachael - 04.10.2010, 14:49
Re: Function returning string crash pawncc - by ZecKo - 04.10.2010, 15:44

Forum Jump:


Users browsing this thread: 1 Guest(s)