Problem about OnPlayerModelSelection - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Problem about OnPlayerModelSelection (
/showthread.php?tid=623407)
Problem about OnPlayerModelSelection -
TYDS - 01.12.2016
Код:
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>
Re: Problem about OnPlayerModelSelection -
BrianFaria - 01.12.2016
Places "new danhsachskin = mS_INVALID_LISTID;" below the includes.
Re: Problem about OnPlayerModelSelection -
TYDS - 01.12.2016
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 ??
Re: Problem about OnPlayerModelSelection -
BrianFaria - 01.12.2016
So you can define the whole code using "danhsachskin"