if (strcmp("/oparking", cmdtext, true, 10) == 0)
{
if(PlayerInfo[playerid][pMember] == 24 || PlayerInfo[playerid][pLeader] == 24)
{
GivePlayerMoney(playerid, 0);
MoveObject(ParkGate, 1106.45996094,-1740.90917969,16.18049622,5.0);
SetTimer("Torschliessen",5000,0);
}
else
{
if(GetPlayerMoney(playerid) >= 5)//else hat vergessen
{
GivePlayerMoney(playerid, -5);
MoveObject(ParkGate, 1106.45996094,-1740.90917969,16.18049622,5.0);
SetTimer("Torschliessen",5000,0);
}
else
{
SendClientMessage(playerid, COLOR_WHITE, "Sie haben zuwenig Geld.");
}
}
return 1;
}
auf den erstn blick fehlt das else...
/edit total was übersehen sry