mSelection problem - can't choose in mselection
#1

Hey,
I need help please.
When I try to touch mselection menu or in pressable TD I get the same problem = no response.
It's like it can't go inside to the dialog.
I need help with this.
Reply
#2

show for me your fs
Reply
#3

You Have This In Your Own Script
PHP код:
public OnPlayerModelSelection(playeridresponselistidmodelid)
{
    if(
listid == SkinList)
    {
        if(
response)
        {
            
SetPlayerSkin(SetSkinPlayer[playerid], modelid);
        }
        return 
1;
    }
    if(
listid == VehList)
    {
        if(
response)
        {
            
SpawnVehicle(playerid,modelid);
            
PutPlayerInVehicle(playeridmodelid,0);
        }
        return 
1;
    }
    return 
1;
}
stock SpawnVehicle(playeridvehiclemodelcolor1=257color2=3)
{
    new 
Float:x,Float:y,Float:z;
    new 
Float:facing;
    new 
Float:distance;
    
GetPlayerPos(playeridxyz);
    
GetPlayerFacingAngle(playeridfacing);
    new 
Float:size_x,Float:size_y,Float:size_z;
    
GetVehicleModelInfo(vehiclemodelVEHICLE_MODEL_INFO_SIZEsize_xsize_ysize_z);
    
distance size_x 0.5;
      
+= (distance floatsin(-facingdegrees));
    
+= (distance floatcos(-facingdegrees));
    
facing += 90.0;
    if(
facing 360.0facing -= 360.0;
    return 
CreateVehicle(vehiclemodelxy+ (size_z 0.25), facingcolor1color2, -1);

if you haven't add it
Reply
#4

Quote:
Originally Posted by HoussamMaroc
Посмотреть сообщение
You Have This In Your Own Script
PHP код:
public OnPlayerModelSelection(playeridresponselistidmodelid)
{
    if(
listid == SkinList)
    {
        if(
response)
        {
            
SetPlayerSkin(SetSkinPlayer[playerid], modelid);
        }
        return 
1;
    }
    if(
listid == VehList)
    {
        if(
response)
        {
            
SpawnVehicle(playerid,modelid);
            
PutPlayerInVehicle(playeridmodelid,0);
        }
        return 
1;
    }
    return 
1;
}
stock SpawnVehicle(playeridvehiclemodelcolor1=257color2=3)
{
    new 
Float:x,Float:y,Float:z;
    new 
Float:facing;
    new 
Float:distance;
    
GetPlayerPos(playeridxyz);
    
GetPlayerFacingAngle(playeridfacing);
    new 
Float:size_x,Float:size_y,Float:size_z;
    
GetVehicleModelInfo(vehiclemodelVEHICLE_MODEL_INFO_SIZEsize_xsize_ysize_z);
    
distance size_x 0.5;
      
+= (distance floatsin(-facingdegrees));
    
+= (distance floatcos(-facingdegrees));
    
facing += 90.0;
    if(
facing 360.0facing -= 360.0;
    return 
CreateVehicle(vehiclemodelxy+ (size_z 0.25), facingcolor1color2, -1);

if you haven't add it
This is the public that I have:

PHP код:
public OnPlayerModelSelection(playeridresponselistidmodelid)
{
    new 
string[128];
    if(
listid == skinlist)
    {
        if(
response)
        {
            
PlayerPlaySound(playerid,1054,0.0,0.0,0.0);
            new 
idx GetPlayerVirtualWorld(playerid)-100;
            
PlayerInfo[playerid][pModel] = modelid;
            
SetPlayerSkin(playeridmodelid);
            
BizInfo[idx][bMoney] += 1200;
            
BizInfo[idx][bProducts] --;
            
GiveDodMoney(playerid, -1200);
            
PlayerPlaySound(playerid54530.00.00.0);
            
format(stringsizeof(string), "* %s has bought new clothes for $1200."RPN(playerid));
            
SendNearbyMessage(playerid15stringCOLOR_PURPLECOLOR_PURPLECOLOR_PURPLECOLOR_PURPLECOLOR_PURPLE);
        }
        else 
SendClientMessage(playerid0xFF0000FF"Canceled skin selection");
        return 
1;
    } 
Reply
#5

Quote:
Originally Posted by V1Su4L
Посмотреть сообщение
This is the public that I have:

PHP код:
public OnPlayerModelSelection(playeridresponselistidmodelid)
{
    new 
string[128];
    if(
listid == skinlist)
    {
        if(
response)
        {
            
PlayerPlaySound(playerid,1054,0.0,0.0,0.0);
            new 
idx GetPlayerVirtualWorld(playerid)-100;
            
PlayerInfo[playerid][pModel] = modelid;
            
SetPlayerSkin(playeridmodelid);
            
BizInfo[idx][bMoney] += 1200;
            
BizInfo[idx][bProducts] --;
            
GiveDodMoney(playerid, -1200);
            
PlayerPlaySound(playerid54530.00.00.0);
            
format(stringsizeof(string), "* %s has bought new clothes for $1200."RPN(playerid));
            
SendNearbyMessage(playerid15stringCOLOR_PURPLECOLOR_PURPLECOLOR_PURPLECOLOR_PURPLECOLOR_PURPLE);
        }
        else 
SendClientMessage(playerid0xFF0000FF"Canceled skin selection");
        return 
1;
    } 
give me all your fs
Reply
#6

Quote:
Originally Posted by HoussamMaroc
Посмотреть сообщение
give me all your fs
Its inside the GM,
Which publics or part do you need?
The setting of the mselection?
Reply
#7

then give me your stock used in public OnPlayerModelSelection(playerid, response, listid, modelid)

{
Reply
#8

Quote:
Originally Posted by HoussamMaroc
Посмотреть сообщение
then give me your stock used in public OnPlayerModelSelection(playerid, response, listid, modelid)

{
This public is the only thing I have, I don't have any stock for this.
Reply
#9

ok give me your GM
Reply
#10

Quote:
Originally Posted by HoussamMaroc
Посмотреть сообщение
ok give me your GM
Send it in private?
I don't want to give it for anyone.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)