30.09.2013, 23:08
identacion e tienes { } a mas
pawn Код:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
if(response)
{
switch(dialogid)
{
case DIALOG_VEHICLE:
{
if(GetPlayerMoney(playerid) < 200000)
{
SendClientMessage(playerid, 0xFFFFFF, "No tienes suficiente dinero julandron");
RemovePlayerFromVehicle(playerid);
return 1;
}
if(GetPlayerMoney(playerid) >= 200000)
{
GivePlayerMoney(playerid, -200000);
CreateVehicle(602,557.5,-1266.0,17.24,82.2873,0,1,0);
return RemovePlayerFromVehicle(playerid);
}
}
}
}
return RemovePlayerFromVehicle(playerid);
}