23.04.2009, 13:51
I already have:
Please tell me how to make players not in
GetVehicleModel (vehicleid)
if (cartype == 560) (
This function does not work ?
Sunny I explained that I want to do?
Sorry my English
pawn Код:
1)new Menu:nnnnnnnnnn;
2)AddMenuItem(nnnnnnnnnn, 0, "Tt");
AddMenuItem(nnnnnnnnnn, 0, "Ttt");
AddMenuItem(nnnnnnnnnn, 0, "Ttttt");
3)ShowMenuForPlayer(nnnnnnnnnn, playerid);
4) public OnPlayerSelectedMenuRow(playerid, row)
{
new Menu:current;
current = GetPlayerMenu(playerid);
if(current == nnnnnnnnnn)
{
switch(row)
{
case 0:{
new vehicleid = GetPlayerVehicleID(playerid);
new cartype = GetVehicleModel(vehicleid)
if(cartype == 560){
AddVehicleComponent(vehicleid,1139);
}
}
case 1:{
new vehicleid = GetPlayerVehicleID(playerid);
new cartype = GetVehicleModel(vehicleid)
if(cartype == 562){
AddVehicleComponent(vehicleid,1146);
}
}
case 2:{
new vehicleid = GetPlayerVehicleID(playerid);
new cartype = GetVehicleModel(vehicleid)
if(cartype == 411){
AddVehicleComponent(vehicleid,1010);
}
}
}
return 1;
}
GetVehicleModel (vehicleid)
if (cartype == 560) (
This function does not work ?
Sunny I explained that I want to do?
Sorry my English