Problem about OnPlayerModelSelection
#1

Код:
 error 017: undefined symbol "danhsachskin"
Код:
CMD:changeskin(playerid, params[])
{
	ShowModelSelectionMenu(playerid, danhsachskin, "Skins");
	return 1;
}
Код:
new danhsachskin = mS_INVALID_LISTID;
Код:
public OnPlayerModelSelection(playerid, response, listid, modelid)
{
	if(listid == danhsachskin)
    {
        if(response)
        {
        	SetPlayerSkin(playerid, modelid);
			PlayerPlaySound(playerid,5453,0.0,0.0,0.0);
   		}
        return 1;
    }
	return 1;
}
Код:
public OnGameModeInit()
{
	danhsachskin = LoadModelSelectionMenu("skins.txt");
	return 1;
}
Код:
#include <mSelection>
Reply
#2

Places "new danhsachskin = mS_INVALID_LISTID;" below the includes.
Reply
#3

Quote:
Originally Posted by Speedpro
Посмотреть сообщение
Places "new danhsachskin = mS_INVALID_LISTID;" below the includes.
it's work thank you. but can you tell me the reason ??
Reply
#4

So you can define the whole code using "danhsachskin"
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)