16.12.2012, 06:51
pawn Код:
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
new string[128];
if (newkeys & KEY_ANALOG_UP)
{
if(IsPlayerInAnyVehicle(playerid) && GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
if(Turbo[playerid] == 1)
{ // A compound block.........
new Float:x, Float:y, Float:z;
GetVehicleVelocity(GetPlayerVehicleID, x, y, z);
SetVehicleVelocity(GetPlayerVehicleID, x+3, y+3, z+3);
} // A compound block...........
return 1;
}
}
Quote:
error 003: declaration of a local variable must appear in a compound block |