24.04.2014, 00:40
The problem is that when I try it seems that the function does not return false but true, and does not allow things done.
if(dialogid == TC_DIALOG)
{
if(!response) return SendClientMessage(playerid, -1, "Se cancela venta.");
switch(listitem)
{
case 0:
{
if(gTeam[playerid] == TEAM_UNASUR)
{
for(new l = 0; l<MAX_VEHICLES; l++)
{
if(GetVehicleModel(uns[l]) == 470)
{
if(!IsValidVehicle(uns[l]))
{
SendClientMessage(playerid, -1, "No tiene espacio para este Vehiculo");
}
else
{
SendClientMessage(playerid, -1, "Vehiculo Comprado Exitosamente!");
}
}
}
}
}
}
}
Thanks!!! (y)
if(dialogid == TC_DIALOG)
{
if(!response) return SendClientMessage(playerid, -1, "Se cancela venta.");
switch(listitem)
{
case 0:
{
if(gTeam[playerid] == TEAM_UNASUR)
{
for(new l = 0; l<MAX_VEHICLES; l++)
{
if(GetVehicleModel(uns[l]) == 470)
{
if(!IsValidVehicle(uns[l]))
{
SendClientMessage(playerid, -1, "No tiene espacio para este Vehiculo");
}
else
{
SendClientMessage(playerid, -1, "Vehiculo Comprado Exitosamente!");
}
}
}
}
}
}
}
Thanks!!! (y)