Thread: [Solved] unkown code error
View Single Post
DjSoftero
Veteran Member
Join Date: Nov 2014
Location: Lithuania
Old 08-19-2017 , 09:32   Re: unkown code error
Reply With Quote #2

I think you need to check whether player is alive. function new_round() is not registered anywhere, so it cannot be called. You need to hook player spawn and then change it from there. all in all, it should look something like this:
Spoiler


as in model array:
PHP Code:
new const models[] = {
"player/gign/gign.mdl",
"player/gsg9/gsg9.mdl",
"player/sas/sas.mdl",
"player/spetsnaz/spetsnaz.mdl",
};
//this is incorrect, you need to write only a folder directory for a model.
//that is a case only for a player models tho 
this should be instead:
PHP Code:
new models[4][] = {
    
"player/gign",
"player/gsg9",
"player/sas",
"player/spetsnaz"

__________________
retired chump

Last edited by DjSoftero; 08-19-2017 at 10:56.
DjSoftero is offline