Ich habe einen Menü Command usw. erstellt und wenn ich es testen will ob es geht, dann stürzt die samp-server.exe ab.
Weiß jemand woran das liegen könnte?
#include <a_samp>
#pragma tabsize 0
new Menu:Bikes;
#if defined FILTERSCRIPT
public OnFilterScriptInit()
{
print("\n--------------------------------------");
print(" Blank Filterscript by your name here");
print("--------------------------------------\n");
return 1;
}
public OnFilterScriptExit()
{
return 1;
}
#else
main()
{
print("\n----------------------------------");
print(" Blank Gamemode by your name here");
print("----------------------------------\n");
}
#endif
public OnGameModeInit()
{
Bikes = CreateMenu("Bikes", 1, 50.0, 180.0, 200.0, 200.0);
AddMenuItem(Bikes, 0, "BF-400");
AddMenuItem(Bikes, 0, "Bike");
AddMenuItem(Bikes, 0, "BMX");
AddMenuItem(Bikes, 0, "BMX");
AddMenuItem(Bikes, 0, "Faggio");
AddMenuItem(Bikes, 0, "FCR-900");
AddMenuItem(Bikes, 0, "Freeway");
AddMenuItem(Bikes, 0, "Mountain Bike");
AddMenuItem(Bikes, 0, "NRG-500");
AddMenuItem(Bikes, 0, "PCJ-600");
AddMenuItem(Bikes, 0, "Pizzaboy");
AddMenuItem(Bikes, 0, "Sanchez");
AddMenuItem(Bikes, 0, "Wayfarer");
return 1;
}
public OnGameModeExit()
{
return 1;
}
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/bikes", cmdtext, true, 10) == 0)
{
ShowMenuForPlayer(Bikes, playerid);
return 1;
}
return 0;
}
public OnPlayerSelectedMenuRow(playerid, row)
{
new Menu:current;
current = GetPlayerMenu(playerid);
if(current == Bikes)
{
switch(row)
{
case 0:
{
PutPlayerInVehicle(playerid, 581, 0);
}
case 1:
{
PutPlayerInVehicle(playerid, 509, 0);
}
case 2:
{
PutPlayerInVehicle(playerid, 481, 0);
}
case 3:
{
PutPlayerInVehicle(playerid, 462, 0);
}
case 4:
{
PutPlayerInVehicle(playerid, 521, 0);
}
case 5:
{
PutPlayerInVehicle(playerid, 463, 0);
}
case 6:
{
PutPlayerInVehicle(playerid, 510, 0);
}
case 7:
{
PutPlayerInVehicle(playerid, 522, 0);
}
case 8:
{
PutPlayerInVehicle(playerid, 461, 0);
}
case 9:
{
PutPlayerInVehicle(playerid, 448, 0);
}
case 10:
{
PutPlayerInVehicle(playerid, 468, 0);
}
case 11:
{
PutPlayerInVehicle(playerid, 586, 0);
}
}
}
return 1;
}
public OnPlayerExitedMenu(playerid)
{
return 1;
}