SA-MP Forums Archive
Help undefined.. - 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: Help undefined.. (/showthread.php?tid=640157)



Help undefined.. - BadJih - 28.08.2017

undefined modelid !!help please


if(listid == skinlist)
{
if(response)
{
SendClientMessage(playerid, 0xFF0000FF, "Skin Changed");
SetPlayerSkin(playerid, modelid);
}
else SendClientMessage(playerid, 0xFF0000FF, "Canceled skin selection");
return 1;
}


Re: Help undefined.. - Kane - 28.08.2017

:thinking:


Re: Help undefined.. - BadJih - 28.08.2017

Quote:
Originally Posted by Arthur Kane
Посмотреть сообщение
:thinking:
see the code now.. i added it


Re: Help undefined.. - Dayrion - 28.08.2017

Quote:
Originally Posted by Arthur Kane
Посмотреть сообщение
:thinking:
:thinking too:
Did you copied/pasted your code?


Re: Help undefined.. - verlaj - 28.08.2017

ahh so you might be using the mselection ?

PHP код:
public OnPlayerModelSelection(playeridresponselistidmodelid)
{
    if(
listid == skinlist)
    {
        if(
response)
        {
            
SendClientMessage(playerid, -1"Skin Selected");
                    
SetPlayerSkin(playerid,modelid); //this ?
        
}
    }
    return 
1;




Re: Help undefined.. - BadJih - 28.08.2017

Quote:
Originally Posted by verlaj
Посмотреть сообщение
ahh so you might be using the mselection ?

PHP код:
public OnPlayerModelSelection(playeridresponselistidmodelid)
{
    if(
listid == skinlist)
    {
        if(
response)
        {
            
SendClientMessage(playerid, -1"Skin Selected");
                    
SetPlayerSkin(playerid,modelid); //this ?
        
}
    }
    return 
1;

same error