22.07.2012, 17:39
You were missing a bracket
pawn Код:
if(dialogid == RIMSMENU)
{
if ( response )
{
switch ( listitem )
{
case 0:
{
if(GetPlayerState(playerid) != PLAYER_STATE_DRIVER) return SendClientMessage(playerid, 0xFFFFFFFF, "You are not driving a vehicle.");
AddVehicleComponent(GetPlayerVehicleID(playerid),1080);
return SendClientMessage(playerid, 0xFFFFFFFF, "You have added Gold Rims to your vehicle.");
}
case 1:
{
if(GetPlayerState(playerid) != PLAYER_STATE_DRIVER) return SendClientMessage(playerid, 0xFFFFFFFF, "You are not driving a vehicle.");
AddVehicleComponent(GetPlayerVehicleID(playerid),1079);
return SendClientMessage(playerid, 0xFFFFFFFF, "You have added Cutter Rims to your vehicle.");
}
}
}
}