22.07.2012, 17:49
Quote:
Try this: ... next tine read here about "switch" https://sampwiki.blast.hk/wiki/Control_Structures#switch_2
Код:
if(dialogid == RIMSMENU) { if ( response ) { switch ( listitem ) { case 0: { if(GetPlayerState(playerid) != PLAYER_STATE_DRIVER) { SendClientMessage(playerid, 0xFFFFFFFF, "You are not driving a vehicle."); } else { AddVehicleComponent(GetPlayerVehicleID(playerid),1080); SendClientMessage(playerid, 0xFFFFFFFF, "You have added Gold Rims to your vehicle."); } } case 1: { if(GetPlayerState(playerid) != PLAYER_STATE_DRIVER) { SendClientMessage(playerid, 0xFFFFFFFF, "You are not driving a vehicle."); } else { AddVehicleComponent(GetPlayerVehicleID(playerid),1079); SendClientMessage(playerid, 0xFFFFFFFF, "You have added Cutter Rims to your vehicle."); } } } } } |
Код:
error 017: undefined symbol "ProxDetector"