01.08.2012, 09:34
Alright, I keep trying different things and keep running into different problems.
Before, I tried to just run what I already had with ShowMenuForPlayer, compiling went fine but the server just kept shutting itself down, there wasn't even anything notable in the logs, it just shut down.
Now, I tried flinging the script into "public OnPlayerSpawn" because that's where I want it, because the vehicles are set to spawn in that area and I want the menu to only open once per game session.
Before, I tried to just run what I already had with ShowMenuForPlayer, compiling went fine but the server just kept shutting itself down, there wasn't even anything notable in the logs, it just shut down.
Now, I tried flinging the script into "public OnPlayerSpawn" because that's where I want it, because the vehicles are set to spawn in that area and I want the menu to only open once per game session.
pawn Код:
public OnPlayerSpawn(playerid)
{
ShowMenuForPlayer(carspawnmenu, playerid);
{
switch(row)
{
case 0: //Clover
{
CreateVehicle(542, 2816.1345, -2438.1392, 12.5097, 90.0000, -1, -1, 0);
}
case 1: //Picador
{
CreateVehicle(600, 2816.1345, -2438.1392, 12.5097, 90.0000, -1, -1, 0);
}
case 2: //Manana
{
CreateVehicle(410, 2816.1345, -2438.1392, 12.5097, 90.0000, -1, -1, 0);
}
case 3: //Tampa
{
CreateVehicle(549, 2816.1345, -2438.1392, 12.5097, 90.0000, -1, -1, 0);
}
case 4: //Walton
{
CreateVehicle(478, 2816.1345, -2438.1392, 12.5097, 90.0000, -1, -1, 0);
}
case 5: //Glendale Shit
{
CreateVehicle(604, 2816.1345, -2438.1392, 12.5097, 90.0000, -1, -1, 0);
}
case 6: //Majestic
{
CreateVehicle(517, 2816.1345, -2438.1392, 12.5097, 90.0000, -1, -1, 0);
}
}
}
return 1;
}