[Ajuda] Onde esta o erro?
#5

RE: Ipsluan


Sim seria kk



bem apareceu esse erro
Quote:

error 017: undefined symbol "PlayerToPoint"

bem eu nгo manjo muito tlgd

todos os codigo esta aqui


Код:
#include <a_samp>
#include <mSelection>

new planelist = mS_INVALID_LISTID;
new skinlist = mS_INVALID_LISTID;
public OnFilterScriptInit()
{
	planelist = LoadModelSelectionMenu("planes.txt");
	skinlist = LoadModelSelectionMenu("skins.txt");
	return 1;
}

public OnPlayerCommandText(playerid, cmdtext[])
{
    if(strcmp(cmdtext, "/plane", true) == 0)
    {
        if(PlayerToPoint(5.0, playerid, 218.2851,-98.5317,1005.2578))
        {
            ShowModelSelectionMenu(playerid, planelist, "->Planes<-");
        }
        return 1;
    }
    if(strcmp(cmdtext, "/changeskin", true) == 0)
    {
        if(PlayerToPoint(5.0, playerid, 218.2851,-98.5317,1005.2578))
        {
            ShowModelSelectionMenu(playerid, skinlist, "Select Skin");
        }
        return 1;
    }
    return 0;
}

public OnPlayerModelSelection(playerid, response, listid, modelid)
{
	if(listid == planelist)
	{
	    if(response)
	    {
		    SendClientMessage(playerid, 0xFF0000FF, "Plane Spawned");
	    	new Float:pos[3]; GetPlayerPos(playerid, pos[0], pos[1], pos[2]);
	    	CreateVehicle(modelid, pos[0] + 2.5, pos[1], pos[2] + 2.5, 0.0, random(128), random(128), -1);
	    }
	    else SendClientMessage(playerid, 0xFF0000FF, "Canceled plane selection");
    	return 1;
	}
	if(listid == skinlist)
	{
	    if(response)
	    {
		    SendClientMessage(playerid, 0xFF0000FF, "Skin Changed");
	    	SetPlayerSkin(playerid, modelid);
	    }
	    else SendClientMessage(playerid, 0xFF0000FF, "Canceled skin selection");
    	return 1;
	}
	return 1;
}
Obrigado guilherme
Reply


Messages In This Thread
Onde esta o erro? - by naotenhonome - 20.11.2016, 16:06
Re: Onde esta o erro? - by ipsLuan - 20.11.2016, 16:14
Re: Onde esta o erro? - by GuilhermeW - 20.11.2016, 16:16
Re: Onde esta o erro? - by LockedLucas - 20.11.2016, 16:17
Re: Onde esta o erro? - by naotenhonome - 20.11.2016, 16:19
Re: Onde esta o erro? - by LucasW - 20.11.2016, 16:19
Re: Onde esta o erro? - by LockedLucas - 20.11.2016, 16:45
Re: Onde esta o erro? - by naotenhonome - 20.11.2016, 16:58

Forum Jump:


Users browsing this thread: 1 Guest(s)