Quote:
Originally Posted by Kia
PHP Code:
new const szSprite[] = "sprites/wasabi.spr"
.
.
.
PHP Code:
precache_model(szSprite)
.
.
.
PHP Code:
write_short(szSprite)
|
Um, you are aware that szSprite is a string, not short right?
Not sure but I think it needs the sprite index instead.
Code:
new const szSprite[ ] = "sprites/wasabi.spr"
new iSprIndex
public plugin_precache( )
{
iSprIndex = precache_model( szSprite )
}
write_short( iSprIndex )